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 

Can someone check what is wrong in this script ?

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


Joined: 15 Jun 2008
Posts: 49
Location: Moldova

PostPosted: Fri Mar 27, 2009 2:00 pm    Post subject: Can someone check what is wrong in this script ? Reply with quote

###stick <IP> | stick <IP>###

Code:
proc pub:stick {nick uhost hand chan txt} {
  set txt [split $txt]
  set who [lindex $txt 0]
  if {[isbotnick $who]} { return }
  if {$who == ""} {
   puthelp "NOTICE $nick : Corect use !stick <nick>"
  return 0
  }
  stick "ban $txt $chan"
  return 1
}




it is a script for sticky bans

Edited: Placed code within a suitable code-block.

/NML_375
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Fri Mar 27, 2009 2:29 pm    Post subject: Reply with quote

As far as I'm aware the Eggdrop Tcl command 'stick' is for making an existing ban sticky and takes one or two arguments

stick <banmask> ?channel?

So, what are you trying to do? Set a sticky ban or make an existing ban sticky?

In any case your use of the 'stick' command is incorrect.
_________________
I must have had nothing to do
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