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.
Help for those learning Tcl or writing their own scripts.
lsn
Voice
Posts: 25 Joined: Mon Jul 19, 2004 8:11 am
Post
by lsn » Sat Sep 15, 2007 4:14 am
i need help with this problem
i have an users array like
Code: Select all
set users(xxxx) "*!*@xxxx.users.undernet.org"
and
Code: Select all
foreach user [array names users] {
if {![validuser $user]} {
adduser $user $users($user)
}
}
and every time the bot got rehash, i get this error and the bot rewrite the original user
How can i solve this ?
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Sat Sep 15, 2007 11:26 am
Your code looks correct..
I would guess that your userfile has been damaged at some point.
But just to make sure, which version of eggdrop and tcl are you using?
NML_375
lsn
Voice
Posts: 25 Joined: Mon Jul 19, 2004 8:11 am
Post
by lsn » Sat Sep 15, 2007 1:30 pm
eggdrop 1.6.18 and tcl 8.4
Hope this helps.
But i get this error on all my eggdrops not just one ..
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Sat Sep 15, 2007 3:35 pm
Well, your script is not to blame (atleast not directly, in any way).
Even if you were to try and add an already existant user, adduser would know to handle it properly.
You say all your eggies have the same problem.. are they linked with userfile sharing?
NML_375
lsn
Voice
Posts: 25 Joined: Mon Jul 19, 2004 8:11 am
Post
by lsn » Sat Sep 15, 2007 3:39 pm
they are linked but dont share userfile. Each one have his own userfile