X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fuser_ops.c;h=dab7f296baed524f125cc5f849672ad6f5805998;hp=607f16b3aed96cf3388b5731a306bd6048af23b1;hb=8db8def130c7e0b01dfce85aa2bc207e22188b94;hpb=76cbed11b16936a77f4c41d72ce04fb11df5d7d1 diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 607f16b3a..dab7f296b 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -717,7 +717,7 @@ void CtdlUserLogout(void) strcpy(CCC->fake_roomname, ""); CCC->logged_in = 0; - /* Check to see if the user was deleted whilst logged in and purge them if necessary */ + /* Check to see if the user was deleted while logged in and purge them if necessary */ if ((CCC->user.axlevel == AxDeleted) && (CCC->user.usernum)) { purge_user(CCC->user.fullname); } @@ -938,8 +938,9 @@ int purge_user(char pname[]) makeuserkey(usernamekey, pname, cutuserkey(pname)); /* If the name is empty we can't find them in the DB any way so just return */ - if (IsEmptyStr(pname)) + if (IsEmptyStr(pname)) { return(ERROR + NO_SUCH_USER); + } if (CtdlGetUser(&usbuf, pname) != 0) { syslog(LOG_ERR, "user_ops: cannot purge user <%s> - not found", pname);