Connecting part of my irc service
By: Arie | Date: Aug 25 2006 00:06 | Format: PHP | Expires: never | Size: 1.84 KB | Hits: 1848
- if (!$this->Socket) {
- $tmp = sprintf("nnProblems with connecting to %s:%snErrorNr.: %snErrStr.: %snn",$this->config['server'],$this->config['port'],$ErrNr,$ErrStr);
- }
- $this->SendRaw($tmp,1);
- $tmp = sprintf('SERVER %s 1 %s %s J10 %s]]] +s :%s',$this->config['cline'],$Time,$Time,$this->config['numeric'],$this->config['servicename']);
- $this->SendRaw($tmp,1);
- $this->loadCommands();
- $this->getAuths();
- $this->getChanlevs();
- $this->SendRaw($tmp,1);
- $this->Counter =0;
- if ($this->config['debug']) {
- }
- $this->Idle();
- // --------
- //$this->SendRaw($this->config['numeric'].' P '.$this->config['debug_channel'].' :'.$this->Get, 1);
- if ($Args[0] == 'SERVER') $this->saveMainServer($Args);
- switch ($Cmd) {
- case "EB": /* End of Burst */
- $this->EA();
- $this->serverEndB($Args);
- break;
- case "SQ":
- $this->squitServer($Args);
- break;
- case "G": /* Ping .. Pong :) */
- $this->Pong($Args);
Latest pastes
55 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago