|From User||Message Body|
Date: 8:12 pm, Jun 20 2007
|$this->ircClass->notice($line['fromNick'] , 'you entered '.$args['arg1'].' '.$args['arg2'].'/'.$args['arg3'].'/'.$args['arg4'].' '.$args['arg5']. ':' .$args['arg6'].' '.$args['arg7'].' '.$args['arg8'].' '.$args['arg9']);
can i only go as far as $args['arg4'] ? only those up to
$args['arg4'] are displayed in irc
Date: 6:08 am, Jun 21 2007
Please see the readme.txt:
This is a simple array created from the $line['text'] variable. It contains the following data:
nargs => the number of arguments
cmd => the command used
arg1 => present if there are 1 arguments or more
arg2 => present if there are 2 arguments or more
arg3 => present if there are 3 arguments or more
arg4 => present if there are 4 arguments or more
query => The full text (all of args put together)
(there are no more after arg4..)
So, if I typed "!ad 60 Here is an ad that I want to talk about...":
nargs would be "4" (yes, 4)
cmd would be "!ad"
arg1 would be "60"
arg2 would be "Here"
arg3 would be "is"
arg4 would be "an"
query would be "60 Here is an ad that I want to talk about..."
The maximum arguments can be set by the MAX_ARGS define in the defines.php. It was chosen to be four for performance reasons.
Date: 12:55 pm, Jun 21 2007
|doh sorry i`ve just stumbled across that bit :S