public function destructBot($sMessage = false) { $this->Output('QUIT :' . ($sMessage == false ? $this->oMaster->oConfig->Network['quitmsg'] : $sMessage)); Timers::Delete($this->iPingTimer); @socket_clear_error(); $this->socketShutdown(); $this->Active = false; $this->isWaiting = false; }
/** * Creates a timer, note that arguments to be passed to $cCallback to after $iRepeat. * * @param string $sKey Timer reference ID. * @return bool 'true' on success. */ public function timerKill($sKey) { return Timers::Delete($sKey); }