equal
deleted
inserted
replaced
238 } |
238 } |
239 |
239 |
240 $libirc_channels = array(); |
240 $libirc_channels = array(); |
241 |
241 |
242 // we were able to get back in; ask NickServ to GHOST the old nick |
242 // we were able to get back in; ask NickServ to GHOST the old nick |
243 $irc->connect("$nick`gh", $user, $name, false); |
243 $irc->connect($nick, $user, $name, false); |
244 $irc->privmsg('NickServ', "GHOST $nick $pass"); |
|
245 $irc->change_nick($nick, $pass); |
|
246 |
244 |
247 foreach ( $channels as $channel ) |
245 foreach ( $channels as $channel ) |
248 { |
246 { |
249 $libirc_channels[$channel] = $irc->join($channel, 'enanobot_channel_event'); |
247 $libirc_channels[$channel] = $irc->join($channel, 'enanobot_channel_event'); |
250 $channel_clean = preg_replace('/^[#&]/', '', $channel); |
248 $channel_clean = preg_replace('/^[#&]/', '', $channel); |