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.

warmanager.tcl help

Old posts that have not been replied to for several years.
Locked
X
XmasterX

warmanager.tcl help

Post by XmasterX »

hi, in my eggdrop i put a script for managing the wars of my clan and it appears always this error:

[Abductors]: [12:25] Tcl error [war_topicchange]: wrong # args: should be "topic channel what"

i think the error is somehere arround this code, but i dont have sure cuse i don't know tcl:

Code: Select all

proc war_topicchange {nick uhost handle channel topic} {
  global botnick war_privchan
  set channel [string tolower $channel]
  if {($nick!=$botnick)&&($channel==$war_privchan)} {
    war_automanagement
  }
}
can anyone tell me what is going on and correct this error?

thkz :)
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

i think u need to set a channel or something don't think its code thing ..
XplaiN but think of me as stupid
X
XmasterX

Post by XmasterX »

the settings are all filled and right... :-?

but the script works fine, but the bot don't change the topic of the private channel after i put a new war on it... i think this error has something to do with this...
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

.tcl set errorInfo
then you'll find where the error occours (line, proc, etc)
X
XmasterX

Post by XmasterX »

what?

i put the command and it don't work...
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You have to have the .tcl command enabled for that to work. By the way, it's a partyline command, not something you put in the tcl file.

To enable the .tcl command, edit your config file and delete any lines that say

unbind dcc n tcl *dcc:tcl

or anything like that.
Locked