Code: Select all
proc pub_admin {nick host hand chan arg} {
foreach user [chanlist $chan] {
if {[isop $user $chan]} {
if {[info exists list]} {
append list " $user"
} else {
set list "$user"
}
}
}
putserv "PRIVMSG $chan : $list, $nick called for an admin!"
}
This lets anyone use !admin, so that everybody with op will get higlighted in the channel. (every op-nick is stored in $list )
But my problem is, is there also a way to send everyone a pm, instead of a channel higlight?
So everyone who is in $list, should receive a privmsg, is this possible?
Lots of thanks if you can help me here