PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Devastator on 01 April, 2004, 00:04:14

Title: Strange But True......Regusers showing 15 Times Al2getha!
Post by: Devastator on 01 April, 2004, 00:04:14
Ease up people!

i was hoping some1 could help me with this a hub that i am op in seems to be having a problem i dnt know if its an error in ptokax but users that have been regged are duplicated 14 times, al2getha equalin 15 tymes.

i was hoping sum1 could help write a script that would delete the 14 duplicates and jus keep 1 copy...i'm not sure if u understand so heres an example of the RegisteredUsers.dat file...


[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[FIN-1MB]JAY|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[Fr]Adjete|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3
[GER]JazzMatazz@DSL|*******|3


This is a very small example as abt 1000 user accounts have been times by 14 or 15 making abt 14000 accounts which are not needed.

The password i have blanked out 4 security reasons.

And i am hoping sum1 could write a script the could delete the 14 duplicates and just keep 1 account per person cos i dnt goin thru 14000 accounts n deletein them manually...LOL

thanx 4 ya help am sure oNe of u guys will help cos u always do and thats da top thing abt u =).

Devastator
Title:
Post by: NotRabidWombat on 01 April, 2004, 00:31:24
Post the script you use to register the users.

-NotRabidWombat
Title:
Post by: Devastator on 01 April, 2004, 00:34:01
its just the normal Robcop 6.0d command which is...

!reguser nick password

hope that helps! cos i dunno where 2 find the exact thing....

n thanx 4 the quick reply!

Devastator
Title:
Post by: pHaTTy on 01 April, 2004, 00:42:07
QuoteOriginally posted by Devastator
its just the normal Robcop 6.0d command which is...

!reguser nick password

hope that helps! cos i dunno where 2 find the exact thing....

n thanx 4 the quick reply!

Devastator

uve recently had a crash, a flood, try a fresh px, and clear the multi regs
Title:
Post by: Devastator on 01 April, 2004, 00:46:18
ez,

ok thanx 4 that.......i exteremly appreciate it.......but how do u want me 2 delete the multi regs....manually cos thats like 14000 users 2 delete manually and we cnt afford 2 delete them becos we will need 2 re reg abt 1000 users all over...

if u mean delete multi reg in anotha plz xplain cos i dnt have a cloo  :rolleyes:  

thanx a gr8 deal 4 the replies

ur extremely helpful

Devastator
Title:
Post by: NotRabidWombat on 01 April, 2004, 01:05:24
Assuming that phatty is correct and your PtokaX is toast, you do not want a script through PtokaX to perform the duplicate removal.

This is why more people should use *nix. We're going to steal one of their commands called uniq.

Go here:
http://david.tribble.com/programs.html
Download uniq.exe
Or go here:
http://unxutils.sourceforge.net/
And get a whole package of usefull Unix utilities along with uniq.

Put uniq.exe in your PtokaX folder.

Windows XP/2000
Start -> Run -> cmd
Windows ME, 98, 95
Start -> Run -> command

Type: cd "Your PtokaX directory"

example: "C:\Program Files\PtokaX\"

Type: uniq RegUserDB temp.txt

Replace RegUserDB with the name of the registered user file. I don't remember the exact name of the file.

Open temp.txt and check it out. Now just rename this file for your new PtokaX install.

However, I do have a sneaking suspicion that PtokaX did not change during a crash. It very likely is the script messing up. You could look into that if this method fails.

-NotRabidWombat
Title:
Post by: NotRabidWombat on 01 April, 2004, 01:20:31
You may also want to try.

uniq -u RegUserDB

This will show all lines that are NOT repeated in sequence. May reveal a line that is causing a problem in the file.

For more commands:
uniq --help

-NotRabidWombat
Title:
Post by: plop on 01 April, 2004, 04:06:11
QuoteOriginally posted by NotRabidWombat
Assuming that phatty is correct and your PtokaX is toast, you do not want a script through PtokaX to perform the duplicate removal.

This is why more people should use *nix. We're going to steal one of their commands called uniq.

Go here:
http://david.tribble.com/programs.html
Download uniq.exe
Or go here:
http://unxutils.sourceforge.net/
And get a whole package of usefull Unix utilities along with uniq.

-NotRabidWombat
cool links, i would have made a script 2 do it (not on ptokax). lol

plop
Title:
Post by: [NL]trucker on 01 April, 2004, 09:37:55
Devastator


you could also open your reguser.dat file in note pad and then remove the duplicate names.

but be sure to do it on a copy  .

then if you have removed all the doublles STOP  ptotax and replace the old reguser .dat with the one you have edited.

but make sure pkotax is,nt running when replacing the file otherwise it will not work.
Title:
Post by: kp on 01 April, 2004, 09:54:25
i would like to know, if your muliplt users also show in the regged, userlist of ptokax or in the tba GetReggedUsers(profile) ( I think it is), or only in the reggeduseres.dat file?

If show also in the regged useres list or in the regged profile, then I would say something needs to be changed in ptokax.
Same with banning IPs one can ban the same IP millions of times, really usefull, lol.