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.*
}
}
}

Comments

Sign in to comment.
NIGathan   -  Apr 26, 2012
@LucSatise I said who and whois. Who is a single lined whois with possibly less information. I am saying that operators with certain usermodes can see when they are who'd on certain ircd's. Yes it is uncommon, but I have seen it happen with my Hover Info script.
 Respond  
Aha2Y   -  Apr 26, 2012
Thank you all for the feedback!

@kiri
You are completely right about the %ircops.chan variable, I used it in the previous version of the script. The previous script would say everything in the channel which would cause problems because it would have highlight all the IRCops in the channel. I will removed the variable in my last version which i will upload soon.

@oRtakVeLja
Yes, there is a high chance that you will get excess flooded of a server if there are 50~ IRC operators in the channel.
Although. I'm working on a flood protection which will slice the notice if its reaches the limit and will give another notice with the other nicks.

I would appreciate it if you have more idea's for the script. Don't be shy!, Just post and maybe i will include it!
 Respond  
LucSatise   -  Apr 25, 2012
@NIGathan This doesn't whois so ircop's wont ever see this.
 Respond  
NIGathan   -  Apr 21, 2012
Great script, just a heads up though. On some ircd's, with certain usermode/snomask, operators can see when they are who'd and/or whois'd. Granted, it is much rarer for an oper to see a who as apposed to a whois.
 Respond  
kiri   -  Apr 20, 2012

Code

 

you set %ircops.chan but you do not use it
numtok used for counting
you check all the living room when there are specific Who which can cause a flood
 Respond  
[85]   -  Apr 20, 2012
tested, works fine... but u can still improve code... picture
 Respond  
fraguk   -  Apr 19, 2012
there is a IAL script for that ..
 Respond  
oRtakVeLja   -  Apr 19, 2012
Please setup IAL for Mass SendQ to 99 users.
When channel have to many users u will quit server. ;) BTW: Good job ;)
 Respond  
Aha2Y   -  Apr 18, 2012
Thanks for the feedback guys, But there is not even one bug in it? o_O
 Respond  
FreakServ   -  Apr 18, 2012
Works! Good work!
 Respond  
Lenooox   -  Apr 17, 2012
nice job Aha2Y :)
 Respond  
DEATHJ0KER   -  Apr 17, 2012
does his duty ^^
 Respond  
Drarqua   -  Apr 17, 2012
Nice Work Aha2Y
 Respond  
computerguy99   -  Apr 17, 2012
Nevermind...it works now! tested with /bs say
 Respond  
computerguy99   -  Apr 17, 2012
It doesn't seem to work for me...liked anyway!
 Respond  
fraguk   -  Apr 17, 2012
Seen this at work in Aha2Y;s channel, very good mate , keep the good work up . :)
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.