| View previous topic :: View next topic |
| Author |
Message |
souly Voice
Joined: 17 Dec 2005 Posts: 3
|
Posted: Sat Dec 17, 2005 7:30 am Post subject: Public commands using staff channel |
|
|
Hello. I've recently bought a shell and installed an eggdrop on it. I'm currently using several scripts such as the IMDB, phpbb2egg, and so on. they all work great. But, now I'm searching for a usefull script to manage my channel using the staff channel.
Lets say my channel is #chan, and the staff channel is #chan.staff. I'm in need of a public chan script who will let anyone inside #chan.staff, opped or not, to use commands such as !op, !kick, etc who will be executed at #chan only.
I've been searching alot for a script like this, but I couldn't find it anywhere.
Any help regarding a script such as this will be greatly appreciated.
Thanks in advance! _________________ Best Regards,
Soul. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Dec 17, 2005 12:31 pm Post subject: |
|
|
Example:
| Code: | bind pub - !kick pub:kick
proc pub:kick {nick uhost hand chan arg} {
if {![string equal -nocase #chan.staff $chan]} { return 0 }
set t [lindex [split $arg] 0]
set r [join [lrange [split $arg] 1 end]]
if {[botisop #chan]} {
if {[onchan $t #chan]} {
puthelp "kick #chan $t :$r"
} {
puthelp "notice $nick :$t is not on #chan"
}
} {
puthelp "notice $nick :I'm not op on #chan"
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
souly Voice
Joined: 17 Dec 2005 Posts: 3
|
Posted: Sat Dec 17, 2005 1:23 pm Post subject: |
|
|
I will now work on it and try to set everything using the example youve given me, Thank you! . _________________ Best Regards,
Soul. |
|
| Back to top |
|
 |
souly Voice
Joined: 17 Dec 2005 Posts: 3
|
Posted: Sun Dec 18, 2005 9:39 am Post subject: |
|
|
Sorry for bouncing/double reply, but I'm having some troubles with modifying some of the commands. could you give me an example of a ban command, kb, and some kind of a mode change command?
Plus, if you could somehow add the script a self check that $t isn't him, so he won't kick himself.
Sorry for annoying, and thanks if you are able to help . _________________ Best Regards,
Soul. |
|
| Back to top |
|
 |
|