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.

no ctcp error help

Old posts that have not been replied to for several years.
Locked
s
suffering
Voice
Posts: 27
Joined: Fri May 27, 2005 4:34 am

no ctcp error help

Post by suffering »

Code: Select all

proc raw:ncc_checkctcp {from keyword arg} {
global botnick ncc_chans ncc_noactions ncc_ctcps ncc_lockchan ncc_globflags ncc_chanflags
set nick [string range $from 0 [expr [string first "!" $from] -1]]
set chan [lindex [split $arg] 0]
set type [string trim [string trim [lindex $arg 1] :] \001]
The error is:

Code: Select all

Tcl error [raw:ncc_checkctcp]: list element in quotes followed by "?" instead of space
Last edited by suffering on Sat Aug 20, 2005 4:04 pm, edited 1 time in total.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

".set errorInfo" in partyline to know more about the error.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

substitute lindex $arg with lindex [split $arg]
s
suffering
Voice
Posts: 27
Joined: Fri May 27, 2005 4:34 am

Post by suffering »

[quote]|19:25| › (botnick) [19:37] #user# set errorInfo
Last edited by suffering on Sat Aug 20, 2005 4:05 pm, edited 1 time in total.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

We can't help you with the other error since you didn't post any related code. For the first code, try demond's suggestion.
s
suffering
Voice
Posts: 27
Joined: Fri May 27, 2005 4:34 am

Post by suffering »

# Number of repeats before kicking
set repeatkick 3
# In how many seconds
set repeattime 20
*btw ur tcl on dalnet its working perfect :)
Last edited by suffering on Sat Aug 20, 2005 4:04 pm, edited 1 time in total.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

It's not a major error, I think the script's author made that proc to unset repeat_last and repeat_num variables since they're used as arrays in the script. Although he should've used 'info exists' instead.

* If you were talking about allfloodprotection, then why're you using a separate repeat protection script :P
s
suffering
Voice
Posts: 27
Joined: Fri May 27, 2005 4:34 am

Post by suffering »

on dalnet my channel is standart, 0,1% to put the bot on new channel and i dont have to change the settings all the time. on undernet i dont have standar channels or i put the on a registration bla bla... i cant change all the time the settings and if u see on my posts the most times i want the scripts to act on all the channels :). i pick up small scripts, its not easy but that way i will start learning thinks on tcl. i can modify small tcl to act like i want it. fiou ;P

*sorry for my english
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I guess I should add the feature that using * for chans will make it work on all channels. Probably in the next version, if it'll exists :D
s
suffering
Voice
Posts: 27
Joined: Fri May 27, 2005 4:34 am

Post by suffering »

i try to fix the ctcp protection with demond sugestion but nothing... anything else pls?
Locked