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.

hostmask recognition

Old posts that have not been replied to for several years.
Locked
n
n0s37

hostmask recognition

Post by n0s37 »

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"
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
Locked