libirc.php
changeset 31 d75124700259
parent 30 2cfcd2801e5a
child 32 236fd4f65752
equal deleted inserted replaced
30:2cfcd2801e5a 31:d75124700259
   422       return true;
   422       return true;
   423     
   423     
   424     $this->quitted = true;
   424     $this->quitted = true;
   425     // Part all channels
   425     // Part all channels
   426     if ( !$partmsg )
   426     if ( !$partmsg )
   427       $partmsg = 'IRC bot powered by PHP/' . PHP_VERSION . ' libirc/' . REQUEST_IRC_VERSION;
   427       $partmsg = 'Closing connection (no reason given)';
   428     
   428     
   429     foreach ( $this->channels as $channel )
   429     foreach ( $this->channels as $channel )
   430     {
   430     {
   431       $channel->part($partmsg);
   431       $channel->part($partmsg);
   432     }
   432     }