Commit 46b860e9 authored by deuce's avatar deuce
Browse files

Fix undeletion of users.

Reported by Merlin.
parent 2ebcce59
......@@ -1620,7 +1620,10 @@ int edit_user(scfg_t *cfg, int usernum)
case 0:
user.misc ^= DELETED;
putuserrec(cfg,user.number,U_MISC,8,ultoa(user.misc,str,16));
putusername(cfg,user.number,nulstr);
if(user.misc & DELETED)
putusername(cfg,user.number,nulstr);
else
putusername(cfg,user.number,user.alias);
break;
case 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment