Updating Users From RegisteredUsers.dat Via Script?
 

Updating Users From RegisteredUsers.dat Via Script?

Started by xfernal, 22 January, 2004, 20:22:26

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xfernal

Okay, I have a scheduled VB script running that will update RegisteredUsers.dat with accounts that are in my SQL Server database. Now I need to have a LUA script that will refresh the registered users every 1 minute using that list. Is there a command that I am not aware of to do this? Anyone have any code? I will gladly share my script that will update RegisteredUsers.dat if anyone is interested in syncing website accounts with hub accounts.

c h i l l a

well you could

write the nicks to add into a second file.

and then read out that file with a lua script and

do this func

AddRegUser(nick,pass,profile_index)

done.

xfernal

#2
Is AddRegUser smart enough to not add a duplicate user without throwing an error or do I need to loop through the existing users and see if the user is already registered?

Thats where it would be nice just to refresh the list rather than having to loop through all those users if AddRegUSer is not smart enough. Right now I have 2300+ members.

c h i l l a

#3
well I guess it will not overwrite the old one... but not sure.. haven't tested yet.

plop

AddRegUser(nick, pass, level) - adds new registered user or changes his password and profile if user is already registered
can be solved by stuffing all the regged users in a table.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk