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 

Public commands using staff channel

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
souly
Voice


Joined: 17 Dec 2005
Posts: 3

PostPosted: Sat Dec 17, 2005 7:30 am    Post subject: Public commands using staff channel Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Dec 17, 2005 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
souly
Voice


Joined: 17 Dec 2005
Posts: 3

PostPosted: Sat Dec 17, 2005 1:23 pm    Post subject: Reply with quote

I will now work on it and try to set everything using the example youve given me, Thank you! Smile.
_________________
Best Regards,
Soul.
Back to top
View user's profile Send private message
souly
Voice


Joined: 17 Dec 2005
Posts: 3

PostPosted: Sun Dec 18, 2005 9:39 am    Post subject: Reply with quote

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 Smile.
_________________
Best Regards,
Soul.
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 -> Script Requests 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