Copyright © 2010 – Brandin Arsenault, Known Syntax – BOINC Services, Int. – All rights reserved.
Editing of this script is allowed.
This script is originally from the iKnown IRC Bot which is now discontinued.
-
This script was completely made by me. This is a TEASE OP script. If your an op in said channel that this script is placed on a user in and this user with the script is an op, they can do this. Well, just use the command below and it gives and takes ops from said user you want to tease. Have fun TEASING!
-
Commands:
!tease NICK - Replace 'NICK' with the person you want to tease.
ON *:TEXT:!tease *:*: {
if ($nick isop $chan) {
if ($chan) {
mode $chan +o $2-
mode $chan -o $2-
}
}
}
You should add $2 ison # to make sure it's a nick, not something else. It's also good to check if a nick typed exists or not. This way you don't get an error.
on @*:TEXT:!tease*:#:{
if ($2 ison #) && ($nick isop #) raw -q MODE # +o-o $2 $2
}
You should still add the $nick isop #, because the @ prefix indicates the client running the code is opped, not those who command it.