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.

Getting an error on bot after upgrading to eggdrop 1.6.13

Old posts that have not been replied to for several years.
Locked
j
jammer1
Voice
Posts: 39
Joined: Tue Feb 11, 2003 11:40 am

Getting an error on bot after upgrading to eggdrop 1.6.13

Post by jammer1 »

after upgrading to eggdrop 1.6.13 from 1.3 I get an tcl error on my bot that I didn't get with version 1.3.
[09:54] Tcl error [just_left]: wrong # args: should be "just_left nick host handle channel"

here is the procedure giving the error;
proc just_left {nick host handle channel } {
global mainbot tempchan goodchan mainchan
if { $mainbot == 0 } { return 0 }
if {[string tolower $channel] == [string tolower $mainchan]} {
if {[matchattr $nick o]} { return 0 }
if {[matchattr $handle o]} { return 0 }
if {[onchan $nick $goodchan]} { putserv "KICK $goodchan $nick :warning: you must stay in $mainchan to remain in $goodchan" }
if {[onchan $nick $tempchan]} { putserv "KICK $tempchan $nick :warning: you must stay in $mainchan to remain in $tempchan" }
}
}
#####>>>>> END bind part - * just_left

this procedure is used to kick a user on an invited channel if he parts the main channel.

can someone tell me what i need to do to correct the error.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

this problem is probably due to the fact that the script that proc is in is written for older versions of eggdrop, to fix it change:

Code: Select all

proc just_left {nick host handle channel } { 
to:

Code: Select all

proc just_left {nick host handle channel {arg ""}} { 
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There has been so many changes since those two versions.

Included in this, is the ability to capture part messages, on servers that support them.

A simple change fo the line

Code: Select all

proc just_left {nick host handle channel } {
To

Code: Select all

proc just_left {nick host handle channel {arg ""}} {
Should fix things.,
j
jammer1
Voice
Posts: 39
Joined: Tue Feb 11, 2003 11:40 am

Getting an error on bot after upgrading to eggdrop 1.6.13

Post by jammer1 »

Thanks guys that got rid of the error message, I certainly do appreciate your help. :P :D
Locked