This will throw an error due to using parentheses ( ) where they shouldn't be:
Quote
if ($1 == !o) ( echo -a mode $chan +o $2 )
if ($1 == !deop) ( echo -a mode $chan -o $2 )

After a condition that uses parentheses if ( ) you must use curly braces { }, but only if you will have multiple commands at once:
Quote
if ($1 == !o) { echo -a mode $chan +o $2 | mode $chan +o $2 }
if ($1 == !deop) { echo -a mode $chan -o $2 | mode $chan -o $2 }


So you can fix your code to look like this:
Code
on @:TEXT:*:#:{
  tokenize 32 $strip($1-)
  if ($1 == !o) echo -a mode $chan +o $2
  if ($1 == !do) echo -a mode $chan -o $2 
  if ($1 == !v) echo -a mode $chan +v $2
  if ($1 == !dv) echo -a mode $chan -v $2
}

If you want the specified commands to be able to be executed on channels, then you need to remove this part "echo -a" in all lines.

The command for the channel operator would be: "!o XGamerAMD" - this will set the channel operator status for the specified nickname.


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples