Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » Account System
Forum Rules | Mark all | Recent Posts

Account System
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Nov 6, 2008, 7:00 pm
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

I'm integrating an account system into my SWR. The accounts are stored (swgi/accounts/b/Banner) for example. I need to make a function that can look at data in the accounts folder, the purpose being so that someone can only create one account per IP. I can't get it to work. The best I could come up with was this, but that just checks accounts that are logged in.

bool check_multi_account( DESCRIPTOR_DATA * d )
{
   ACCOUNT_DATA *account;
   int accnum;

   for( account = first_account, accnum = 1; account; account = account->next, accnum++ )
   {
      if( !account->host )
         return FALSE;

      if( !str_cmp( account->host, d->host ))
         return TRUE;
   }
   return FALSE;   
}


Any help would be apprecaited. Thanks.
       
Post is unread #2 Nov 6, 2008, 9:29 pm
Go to the top of the page
Go to the bottom of the page

Keberus
Conjurer
GroupFUSS Project Team
Posts341
JoinedJun 4, 2005

Wouldn't that be a bit unfair to those using a static IP, because those using dial-up could pretty much just redial and create a new account, because they would likely have a new IP.
       
Post is unread #3 Nov 7, 2008, 5:47 am   Last edited Nov 7, 2008, 5:55 am by Banner
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

The purpose is to limit the amount of alts they can have and to keep everyone's alts in one account for better organization. Anyone creating multiple accounts will have them deleted, so I'm not really worried about fairness.

Anyway, if there is a way to do it, you can simply make a command to list the accounts and hosts and simple monitoring will show anyone with multiple accounts, so if its possible, could you tell me how to do it?
       
Post is unread #4 Nov 7, 2008, 10:06 am
Go to the top of the page
Go to the bottom of the page

Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005

I see that the problem is it doesn't keep the account data in memory and simply loads it to load the account then forgets about it. A solution would be to make a file that saves necessary account data in it (such as name and host), that I can then make a for statement or something that can read from the file and return necessary data later. Can anyone point me in the right direction on how to accomplish this?
       
Post is unread #5 Nov 7, 2008, 10:09 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

I cannot bring myself to help you on this issue because the idea that one IP == one person is wrong on so many levels that I can't possibly endorse anything that makes that assumption. :thinking:
       
Post is unread #6 Nov 7, 2008, 10:32 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006


DavidHaley said:

I cannot bring myself to help you on this issue because the idea that one IP == one person is wrong on so many levels that I can't possibly endorse anything that makes that assumption. :thinking:


I'm gonna have to side with David. There are 4 people that live in my house. My Wife, myself, and our 2 roommates. 3 of the 4 play MUDs. We generally all play the same one. We also all work on the same one. We all have a shared IP because it's not worth the effort, or the funds to have it set up in such a way that each computer in my house could have a separate IP.
       
Post is unread #7 Nov 7, 2008, 11:49 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

This thread was crossposted to MudBytes and the discussion continued there.
       
Pages:<< prev 1 next >>