Unknown channel setting.

Paste Your code(s) here, and state your problem.

Unknown channel setting.

Postby ohwait » Fri Jan 01, 2010 10:38 pm

Hello,
im currently trying to configure a script. No need to post it here, because i think i found the problem but i can't solve it:

it's about:

Code: Select all
if {[lindex [split [expr ([unixtime] - [channel get $chan since]) / 86400.] .] 0] != 0} {


if i try to "<botnick> channel get $chan since" the output msg is: Unknown channel setting.

Could it be, that there isn't any variable like "since" in tcl?

Thx 4 help ;)
ohwait
 

Re: Unknown channel setting.

Postby r0t3n » Sun Jan 03, 2010 4:51 pm

you need to setup correct setudefs

that means there is no setudef present for 'since'

as it seems its used to store integers, it would need to be setup as an int
Code: Select all
setudef int since


that will do the trick
r0t3n
 

Re: Unknown channel setting.

Postby ohwait » Tue Jan 05, 2010 8:52 pm

Oh yeah okay, it worked for me.

Thank you very much r0t3n :)
ohwait
 


Return to TCL Scripting Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron