enanobot.php
changeset 38 e6a4b7f91e91
parent 31 d75124700259
child 40 1855846cbdab
equal deleted inserted replaced
37:c3cbefda414a 38:e6a4b7f91e91
   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);