// Debug!
if( giDebugLevel )
- Debug("Authenticating as '%s'", Args);
+ Debug(Client, "Authenticating as '%s'", Args);
// Save username
if(Client->Username)
// Check if trusted
if( !Client->bIsTrusted ) {
if(giDebugLevel)
- Debug("Untrusted client attempting to AUTOAUTH");
+ Debug(Client, "Untrusted client attempting to AUTOAUTH");
sendf(Client->Socket, "401 Untrusted\n");
return ;
}
Client->UID = Bank_GetAcctByName( Args );
if( Client->UID < 0 ) {
if(giDebugLevel)
- Debug("Unknown user '%s'", Args);
+ Debug(Client, "Unknown user '%s'", Args);
sendf(Client->Socket, "401 Auth Failure\n");
return ;
}
Client->bIsAuthed = 1;
if(giDebugLevel)
- Debug("Auto authenticated as '%s' (%i)", Args, Client->UID);
+ Debug(Client, "Auto authenticated as '%s' (%i)", Args, Client->UID);
sendf(Client->Socket, "200 Auth OK\n");
}