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.

How do I use newchanban properly?

Old posts that have not been replied to for several years.
Locked
n
noobified

How do I use newchanban properly?

Post by noobified »

Hi guys. I keep receiving this error when I use newchanban, i have read tcl-commands.doc but unfortunately have yet to grasp what it fully means.

Error is

Tcl error [BanHim]: wrong # args: should be "newchanban channel ban creator comment ?lifetime? ?options?"

In my script it goes like

newchanban $dest $banmask Flooder :Watch this llama fly!

How should i go about using it if I want to also make it a 60 minutes ban?


Help will be greatly appreciated, thanks to all the great helpers out there :)
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Re: How do I use newchanban properly?

Post by strikelight »

noobified wrote:Hi guys. I keep receiving this error when I use newchanban, i have read tcl-commands.doc but unfortunately have yet to grasp what it fully means.

Error is

Tcl error [BanHim]: wrong # args: should be "newchanban channel ban creator comment ?lifetime? ?options?"

In my script it goes like

newchanban $dest $banmask Flooder :Watch this llama fly!

How should i go about using it if I want to also make it a 60 minutes ban?


Help will be greatly appreciated, thanks to all the great helpers out there :)
It is taking the comment to be ':Watch' and everything else after that to be extra arguments... you need to encapsulate your comment in quotes (ie. get rid of your colon). As for 60 minute lifetime of the ban, you would place 60 at the end of your newchanban, just as the usage example indicates.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

example: newchanban $dest $banmask Flooder "your kick message" 60
n
noobified

Post by noobified »

gotcha, thanks
Locked