mIRC Home    About    Download    Register    News    Help

Print Thread
#156548 17/08/06 07:22 PM
Joined: Aug 2006
Posts: 19
R
Reaper Offline OP
Pikka bird
OP Offline
Pikka bird
R
Joined: Aug 2006
Posts: 19
im trying to make a database for my bot. a user database.
on 1:text:register *:?: /write users.txt $2 $3
on 1:text:login *:?: if ($2 == $read(users.txt, $2)) && ($3 == $read(users.txt, $3) { .guser 10 $nick 8 $2 }
would that work?

Last edited by Reaper; 17/08/06 07:50 PM.

ReaperIRC
Killgore Computers
Joined: May 2006
Posts: 93
Babel fish
Offline
Babel fish
Joined: May 2006
Posts: 93
what is $3? the password?
I think is better to use a *.ini file with this structure

[users]
user1=pass1
user2= pass2
ecc...

and the code...

on 1:text:register *:?: writeini users.ini users $2 $3
on 1:text:login *:?: if ($3 == $readini(users.ini, users, $2)) .guser 10 $nick 8 $2

<untested>

Joined: Aug 2006
Posts: 19
R
Reaper Offline OP
Pikka bird
OP Offline
Pikka bird
R
Joined: Aug 2006
Posts: 19
thanks


ReaperIRC
Killgore Computers

Link Copied to Clipboard