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.

op detection

Old posts that have not been replied to for several years.
Locked
B
BrollY
Voice
Posts: 36
Joined: Wed Apr 23, 2003 9:28 pm
Location: H07 L471N4 L4ND (Puerto Rico)

op detection

Post by BrollY »

hey, sorry for the really stupid question im gonna make, but the matter of the truth is, i never bothered learning how to check the modes of users in channels ¶:P

anyhow, quite simple, all i need is the block of code that i need for my eggdrop (windrop actually) to check if a user is opped or not in a chan, but, the command is sent via PM, but ofc both the bot and the user will have to be in the same channel so the bot cn a check, but that's already taken into account (thats why i didnt put $chan in the proc arguments).

thx for the help

proc process {nick host hand text} {
set arbiter(cmd) "[string tolower [lindex $text 0]]"
if {![matchattr $hand o \#channel]} {
return 0
}
}
Yo momma's so fat she can be in the past, present, n future all at once
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

tcl-commands.doc

Post by user »

isop <nickname> [channel]
Returns: 1 if someone by the specified nickname is on the channel (or
any channel if no channel name is specified) and has ops; 0 otherwise
Module: irc
Have you ever read "The Manual"?
Locked