| View previous topic :: View next topic |
| Author |
Message |
Ajax Voice
Joined: 17 Feb 2006 Posts: 2
|
Posted: Fri Feb 17, 2006 3:39 pm Post subject: Command limited to ANY op |
|
|
| 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 |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Fri Feb 17, 2006 3:41 pm Post subject: |
|
|
| 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 |
|
 |
Ajax Voice
Joined: 17 Feb 2006 Posts: 2
|
Posted: Fri Feb 17, 2006 4:02 pm Post subject: |
|
|
| cheers man, appreciate it. |
|
| Back to top |
|
 |
|