this will scan a channel for ircops
copy paste to your bots remotes
!ircopscan #channel
on *:text:!ircopscan*:#: { if ($nick isop $chan) { set -u5 %chan2show $chan | set -u5 %chkchan $2 | opercheck %chkchan } }
alias opercheck {
if ($nick($1,0) > 1000) { .msg %chan2show IrCop scan halted - too many users }
else { .who $1 | set -u5 $+(%,ircopscheck,.,$1) 1 }
}
raw 352:*: {
if ($($+(%,ircopscheck,.,$2),2)) {
if (* isin $7) { set -u5 $+(%,ircops,.,$2) $+($($+(%,ircops,.,$2),2),$chr(44),$6) }
.haltdef
}
}
raw 315:*: {
if ($($+(%,ircopscheck,.,$2),2)) {
if ($($+(%,ircops,.,$2),2)) { .msg $($+(%,chan2show),2) IrCops on $+($($+(%,chkchan),2),$chr(58)) | .msg $($+(%,chan2show),2) $+($($+(%,ircops,.,$2),2),$chr(46)) }
else { .msg $($+(%,chan2show),2) There are no IrCops on $+($($+(%,chkchan),2),$chr(46)) }
unset $($+(%,ircops,.,$2),1)
.haltdef
}
}