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.

Eggdrop1.6.7

Old posts that have not been replied to for several years.
Locked
J
JingYou
Halfop
Posts: 58
Joined: Tue Oct 16, 2001 8:00 pm
Location: Singapore
Contact:

Post by JingYou »

Im currently using Eggdrop v1.6.6, and im thinking of using eggdrop v1.6.7, but i wanna continue using my old bot's config, are there any extra lines to be added in? or are there any other things to add into?
Jing You
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This is somthing you should be looking at yourself.

Decompressing, and reading the file doc/UPDATES1.6 and the config files themself, should give you a clue as to where changes have been made.
s
serra

Post by serra »

HI!
I'm just reporting to you a bug that i found in eggdrop1.6.x. Just look at the example:

12:41: *** {|localhost|} (xpto@xx.xx.xx.xx) has joined channel #caldas.

<in the partyline now>
12:42: ->.tcl putlog "[chanlist #caldas o|o]"
12:42: [12:53] reindeer Cortelos |serra| {{|localhost|}}
<end of example>

Have you noticed that the nick is {|localhost|}, not {{|localhost|}}.

This bug is quite irrelevant, but to me, it brings some problems in some tcls i made.

Merry X-Mas for everyone!
Pedro Serra
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

Nothing wrong with the output. Go read the tcl documentation on the difference between a list and a string.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

chanlist outputs a Tcl string (as noted in tcl-commands.doc), and as such, all names are quoted into list notation, before being sent to your script, else it wouldn't be a list.

Try doing the same thing on every version this command has been in eggdrop, and you will see the same results.
This bug is quite irrelevant, but to me, it brings some problems in some tcls i made.
Then they have been porly made. If handled in the normal way, lists work without problem.
s
serra

Post by serra »

Hi!
Sorry for all this days without sending any reply but.. lack of time... you know :smile:

Well, actualy, you're right! The problem is not on chanlist but i think there is still a problem!
Just take a look in this:

foreach user [chanlist #caldas] {
if {[isop $user #caldas] || [isvoice $user #caldas]} {
putlog "$user"
putserv "who $user"
}
}

In the partilyne it works fine:
19:25: [19:38] Cynthia
19:17: [19:38] {|RiFaDo|}

Now lets add bind raw 352 - for /who $user

proc raw_352 {from key arg} {
set nick "[string tolower [lindex $arg 5]]"
putlog "$nick"
}

Now, just check the results in the partyline:
19:25: [19:38] Cynthia
19:25: [19:38] |rifado|

This time i will not say this is a problem 'cause i dont want to make the same mistake twice but the nick that is on channel is {|rifado|}Êbut, in /who, the bot sees it like |rifado|.

Sorry for my bad english!

*
pedro





P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

Don't use lindex (a list function) on strings. Convert the string to a list first (using split).
s
serra

Post by serra »

Well.. what can i say! It works now.

Thank you very much!

Pedro
Locked