egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

* Duplicate user record 'xxxx'!

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
lsn
Voice


Joined: 19 Jul 2004
Posts: 25

PostPosted: Sat Sep 15, 2007 4:14 am    Post subject: * Duplicate user record 'xxxx'! Reply with quote

i need help with this problem

i have an users array like
Code:
set users(xxxx) "*!*@xxxx.users.undernet.org"


and

Code:
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:
* Duplicate user record 'xxxx'!


How can i solve this ?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Sep 15, 2007 11:26 am    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
lsn
Voice


Joined: 19 Jul 2004
Posts: 25

PostPosted: Sat Sep 15, 2007 1:30 pm    Post subject: Reply with quote

eggdrop 1.6.18 and tcl 8.4
Hope this helps.

But i get this error on all my eggdrops not just one ..
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Sep 15, 2007 3:35 pm    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
lsn
Voice


Joined: 19 Jul 2004
Posts: 25

PostPosted: Sat Sep 15, 2007 3:39 pm    Post subject: Reply with quote

they are linked but dont share userfile. Each one have his own userfile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber