All pastes #426974 Raw Edit

Something

public text v1 · immutable
·published 2007-04-06 14:56 UTC
rendered paste body
		$command = explode(' ',$lines['text']);$command=$command['0'];
		$cmd = $this->beta_getCommand($command);
		if (!$cmd) { $this->beta_Binds($lines,$command); }
		if ($cmd) {
			//9: You must first authicate with authserv before using this command. If you are authicated please type %whoami.
			if ($cmd['requireauth'] == '1' && $lines['authserv'] == '') { $this->notice($lines,$cmd['alias'],'9',array($this->channelConfig['trigger']));return; }
			if ($cmd['requireaccess'] > $this->channelConfig['useraccess']) {
				if ($this->channelConfig['staff']['access'] != '' && $this->channelConfig['useraccess'] < $cmd['requireaccess']) { $this->beta_log($lines,$cmd['alias'],1); }
				else {
					$this->notice($lines,$cmd['alias'],'10',array($cmd['requireaccess']));return;
				}
			}
			elseif ($cmd['requireaccess'] <= $this->channelConfig['useraccess']) {
				$this->beta_log($lines,$cmd['alias'],0);
			}
			//$lines['text'] = $this->ircClass->left($lines['text'],1);
			// $cmd = actual alias of $command
			$c0m=$cmd['alias'];
			if (method_exists($this,$c0m)) {
				$this->$c0m($lines);
			}