This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
n
n0s37
Post
by n0s37 » Mon Sep 29, 2003 9:20 pm
I have made a script where you msg the bot and it will send the msg to all the ops. But I dont want it to be sent to every op. I want to be able to choose to who it sends the msg to. I've thought of 2 ways, one using flags, or hostmasks. The problem is I dont know where to start. Some help would be appreciated. Heres code
Code: Select all
bind msg - help noticeuser
proc noticeuser {nick uhost hand arg} {
putserv "NOTICE n0s37 :blahblahblah"
}
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Tue Sep 30, 2003 12:53 am
Channel operator or users with +o flag? For channel operators:
Code: Select all
foreach user [chanlist #channel] {
if {![isop $user $channel] || [strlwr $user] == [strlwr $::botnick]} { continue }
# do the msg
}
and for users with +o flag:
Code: Select all
foreach user [chanlist #channel o|o] {
# do the msg
}
something like this anyway..
Once the game is over, the king and the pawn go back in the same box.