Variable help. - 13/07/13 10:15 AM
I currently have this code which doesn't seem to work. When I type in '!capsban on' it correctly sets the variable to 'on' but on the next code it doesn't say 'This seems to be working.' when I type in '!capstest'. I get the error '/if: insufficient parameters (line 7, script1)' but from what I can see it's correct. I'm probably just looking over something really stupid, but any help would be greatly appreciated.
Many thanks, Tom.
%on just equals 'on'.
Many thanks, Tom.
Code:
on *:text:!capsban *:#:{ set %capsban. [ $+ [ $chan ] ] $2 msg $chan Capsban is now $2 $+ . } on *:text:!capstest:#:{ if (%capsban. [ $+ [ $chan ] ] isin %on){ msg $chan This seems to be working.} else { msg $chan this isn't working} } }
%on just equals 'on'.