This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Can someone check what is wrong in this script ?

Help for those learning Tcl or writing their own scripts.
Post Reply
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Can someone check what is wrong in this script ?

Post by Danik »

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

Code: Select all

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
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

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
Post Reply