Jump to content

Extension talk:IRC Chat

Add topic
From mediawiki.org
Latest comment: 15 years ago by Monakhos in topic Example?

Enhancement

[edit]

I wanted the registered users to use their wiki username automatically and guests to use nick Guest, thus i modified the _body.php:

$irc = $wgUser->mName;
if (ereg("^[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*", $irc)) { $irc = "Guest"; }

and below:

<param name="alternatenick" value="??'.$irc.'" />

Added the number wildcards in front of the nick simply because someones username might be longer than the ircnet max nick length and thus would cut off the wildcards. --83.145.207.200 20:18, 18 September 2008 (UTC)Reply

  • This would pose a problem if any of the users' usernames has a space in it. IRC isn't very friendly about spaces and certain special characters in usernames. --Qsheets 20:21, 6 October 2008 (UTC)Reply

Version 1.05

[edit]

working in 1.6.x

[edit]

hi, how can it works with 1.6.x version? ty --Vev 21:00, 16 June 2007 (UTC)Reply

Vev, install it as regular. It worked for me with 1.6.10 --Qsheets 05:48, 26 June 2007 (UTC)Reply

Thanks Quentin

[edit]

Working fine on my site --ChuckMcB 22:52, 18 June 2007 (UTC)Reply

Version 1.07

[edit]

Making it work without IRC Nick

[edit]

What I've found was that if you have like the later versions, (e.g. 1.10 - 1.11) it doesn't really let you put in IRC Nick into the preferences. Well, here's how you can go around the IRC Nick:

In SpecialIRC.php, look for:

       if ($wgUser->mId<1) {
               $irc = wfMsg('IrcNick');
       } else {
               $irc = $wgUser->mIrcNick;
       }

Change that to:

       if ($wgUser->mId<1) {
               $irc = "Guest???";
       } else {
               $irc = $wgUser->getName();
       }

I hope this helped. ^-^ --67.141.8.226 15:42, 22 September 2007 (UTC)Reply

The fix above will not work for users with spaces in their names. I Should have all the patches done soon...Watch for them. --Qsheets 03:47, 30 September 2007 (UTC)Reply

Version 1.10

[edit]

Version 2.01

[edit]

Is there option to only allow the IRC-page for logged in registered users and hide it from random visitors or have some kind of "you must login" page instead?

There are a few lines of code you will need to add towards the top of the extension function to get this effect. I don't remember it off the top of my head, but if you were to ask around, I'm sure someone is bound to know (most likely place is the IRC channel: #mediawiki on FreeNode). --Qsheets

Does Updating Break This?

[edit]

This seems like an established extension, and so this has probably been dealt with, but I have one concern:

Since the database is modified, then when a MW upgrade occurs and update.php is run (changing the database), could that break this extension, or vice versa, this extension preventing update.php from working correctly? Thanks. Smaug 22:24, 21 June 2008 (UTC)Reply

Smaug, I took what you wrote into consideration and recently ran an update on my server from 1.11.0 to 1.12.0 and running update.php did not break the extension, nor did the extension break update.php. Thank you for your concern, Qsheets 01:06, 3 July 2008 (UTC)Reply
Thank you for your investigation. Smaug 01:32, 6 July 2008 (UTC)Reply

Version 2.07

[edit]

Example?

[edit]

Does anyone have a publicly accessible example of this running? Would love to see it!

As would I Monakhos 10:24, 2 May 2009 (UTC)Reply