IRC operator detector.
Platform: mIRC
Published Apr 17, 2012
Updated Apr 26, 2012
IRC Operator Detector - Version 1.0
This script will tell you if you have IRC operator(s) in your channel.
There is 1 IRCop detected
<Aha2Y> !ircops
-Bot- [Detector] There is 1 IRC operator detected.
-Bot- [Detector] Aha2Y
There are no IRCop
<Aha2Y> !ircops
-Bot-[Detector] Your channel is IRCop free!.
Warning
This script has not been fully tested. So there maybe are some bugs. Please contact me if you find one.
NEXT VERSION SOON! ;IRCop detector by Aha2Y
on *:text:!ircops:#:{
if ($2 == $null) {
set %ircop.checker 1
who $chan
set %ircop.send $nick
}
}
raw 352:*:{
if (%ircop.checker == 1) {
if (* isin $7) { set %ircop.nick $addtok(%ircop.nick,$6,32) | inc %ircop.count | echo IRCop }
}
}
raw 315:*:{
if (%ircop.checker == 1) {
if (%ircop.count != $null) {
notice %ircop.send [Detector] There $iif(%ircop.count == 1,is,are) %ircop.count IRC $iif(%ircop.count == 1,operator,operators) detected.
notice %ircop.send [Detector] %ircop.nick
unset %ircop.*
}
else {
set %ircop.count 0
notice %ircop.send [Detector] Your channel is IRCop free!.
unset %ircop.*
}
}
}