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.

Command limited to ANY op

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Ajax
Voice
Posts: 2
Joined: Fri Feb 17, 2006 3:36 pm

Command limited to ANY op

Post by Ajax »

How can I add a command so that it can be executed publicly (e.g. just typing command in main channel), but so that it will only respond for people that are opped. I'm not fussed about their rights with eggdrop, as most will be opped through L on quakenet, the only requirement is that they are opped at that moment in time. How can I do it?
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Code: Select all

bind pub -|- <command> <proc_name>

proc <proc_name> {nick uhost hand chan text} {
if {![isop $nick $chan]} { return 0 }
# code here ...
}
r0t3n @ #r0t3n @ Quakenet
A
Ajax
Voice
Posts: 2
Joined: Fri Feb 17, 2006 3:36 pm

Post by Ajax »

cheers man, appreciate it.
Post Reply