chanservstdmessage(sender, QM_AUTHOK, rup->username);
cs_log(sender,"%s OK username %s", authtype,rup->username);
- localusersetaccountflags(sender, rup->username, rup->ID, 0, rup->lastauth);
+
+ localusersetaccount(sender, rup->username, rup->ID, cs_accountflagmap(rup), rup->lastauth);
return CMD_OK;
}