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 )
for( account = first_account, accnum = 1; account; account = account->next, accnum++ )
if( !account->host )
if( !str_cmp( account->host, d->host ))
Any help would be apprecaited. Thanks.