egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Command limited to ANY op

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Ajax
Voice


Joined: 17 Feb 2006
Posts: 2

PostPosted: Fri Feb 17, 2006 3:39 pm    Post subject: Command limited to ANY op Reply with quote

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?
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Fri Feb 17, 2006 3:41 pm    Post subject: Reply with quote

Code:
bind pub -|- <command> <proc_name>

proc <proc_name> {nick uhost hand chan text} {
if {![isop $nick $chan]} { return 0 }
# code here ...
}

_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
Ajax
Voice


Joined: 17 Feb 2006
Posts: 2

PostPosted: Fri Feb 17, 2006 4:02 pm    Post subject: Reply with quote

cheers man, appreciate it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber