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.

* Duplicate user record 'xxxx'!

Help for those learning Tcl or writing their own scripts.
Post Reply
l
lsn
Voice
Posts: 25
Joined: Mon Jul 19, 2004 8:11 am

* Duplicate user record 'xxxx'!

Post by lsn »

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

Code: Select all

* Duplicate user record 'xxxx'!
How can i solve this ?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
l
lsn
Voice
Posts: 25
Joined: Mon Jul 19, 2004 8:11 am

Post by lsn »

eggdrop 1.6.18 and tcl 8.4
Hope this helps.

But i get this error on all my eggdrops not just one ..
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
l
lsn
Voice
Posts: 25
Joined: Mon Jul 19, 2004 8:11 am

Post by lsn »

they are linked but dont share userfile. Each one have his own userfile
Post Reply