Hi to all eggdrop experts there. Maybe i am missing something, but there seems to be a bug in the latest release eggdrop1.6.8.
It's with the functions nick2hand, adduser (release notes says they improved nick2hand speed...kinda strange dont you think ?)
Look at this simple tcl script , which adds a record user with a given nick
########################################################################
#!/usr/bin/tclsh
bind dcc - bug buggy
proc buggy {hdl idx nick} {
set uhost [getchanhost $nick ]
if {$uhost == ""} {
putdcc $idx "User: $nick doesnt exist on any chan"
return
}
if {![adduser $nick [maskhost "$nick!$uhost"]]} {
putdcc $idx "(notice: user $nick already exists in userfile)"
}
set h [nick2hand $nick]
putdcc $idx $h
}
########################################################################
Now look at the behaviour with eggdrop1.6.6 (which seems correct to me)
----------------------------------------
.deluser joe
Deleted joe.
[14:16] #jer# deluser joe [joe]
.bug joe
joe
.bug joe
(notice: user joe already exists in userfile)
joe
----------------------------------------
Thats just exactly what we expected didn't we ?
And now just have a look at what happens with egg1.6.8
----------------------------------------
[14:28] TheB1t joined #lame.
.deluser joe
Deleted joe.
[14:29] #jer# deluser joe [joe]
.bug joe
*
.bug joe
(notice: user joe already exists in userfile)
*
.channel
[14:29] #jer# (#lame) channel
Channel #lame, 2 members, mode +:
(n = owner, m = master, o = op, d = deop, b = bot)
NICKNAME HANDLE JOIN IDLE USER@HOST
TheB1t * 14:28 <- it's me!
@joe joe --- a@10.0.0.4
End of channel info.
.bug joe
(notice: user joe already exists in userfile)
joe
----------------------------------------
Notice that everything becomes OK if i type ".channel"
Notice too, that the behaviour with the adduser command is ok as far as i send it at the console (NOT in a tcl)
Thanks for any reply.
Jerome