| View previous topic :: View next topic |
| Author |
Message |
Tannn3r Voice

Joined: 23 Dec 2010 Posts: 25
|
Posted: Sun Dec 26, 2010 11:26 pm Post subject: ChanServ Auto Need Error |
|
|
With this TCL script: http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1023
Loaded and configured correctly, I get this error message via CTCP chat with my eggdrop bot:
| Code: | | <EggDrop> [22:25] Tcl error [need:unban]: can't read "cha": no such variable |
I have no idea what it's talking about. |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Dec 27, 2010 5:09 am Post subject: |
|
|
| Code: |
proc need:unban {chan type} {
global botnick needunbantype needunbanchans
if {($needunbantype == 1) && ([lsearch -exact [split [string tolower $needunbanchans]] [string tolower $chan]] != -1)} { needunban:chans $chan $type }
if {($needunbantype == 2)} { needunban:chans $chan $type }
if {($needunbantype != 1) && ($needunbantype != 2) || ($needunbantype == 0)} { return 0 }
}
|
As you can see the 'need:unban' proc doesn't have a 'cha' variable. Have you done any changes to your file? _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Tannn3r Voice

Joined: 23 Dec 2010 Posts: 25
|
Posted: Mon Dec 27, 2010 12:38 pm Post subject: |
|
|
| No, I even searched script several times and came up with nothing. However, it was telling me this while it was banned and didn't have the right permissions to unban itself. Would that be the problem? |
|
| Back to top |
|
 |
|