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 command with auth

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
fredvil
Voice


Joined: 01 Dec 2005
Posts: 21

PostPosted: Wed Dec 07, 2005 7:51 am    Post subject: public command with auth Reply with quote

pls help me with toolz.tcl from archive.. the public command for kick and ban not working. below is the part of the script:
Code:

# Kicks someone off the channel
# Usage: !kick <nick> <reason>
# Ex: !kick Joe You suck!
proc pub:kick {nick uhost hand chan args} {
   if {(![auth:check $hand]) && (![isop $nick $chan])} {return 0}
   set args [split [cleanarg $args]]
   if {[llength $args] < 2} {
      notice $nick "Usage: !kick <nick> <reason>"
      return 0
   }
   if {$hand == "*"} {return 0}
   if {([isop $hand $chan]) || ([matchattr $hand "|o" $chan]) || ([matchattr $hand "o"])} {
      set who [lindex $args 0]
      set reason [lrange $args 1 end]
      putserv "KICK $chan $who :$reason"
      putcmdlog "<<$nick>> !$hand! kick $args"
   } else {
      notice $nick "You can't do that!"
   }
}

here is the respond of the bot on the DCC window... but the bot is not responding on the public command

<<clarck>> !bukyo! kick \{bukyo bye\}
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Dec 07, 2005 11:55 am    Post subject: Reply with quote

According to this code, your handle should be the same name as your nickname and you should be oped.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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