projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Auto-generated email address is now derived from the screen name. Fall back to other...
[citadel.git]
/
citadel
/
user_ops.c
diff --git
a/citadel/user_ops.c
b/citadel/user_ops.c
index 607f16b3aed96cf3388b5731a306bd6048af23b1..dab7f296baed524f125cc5f849672ad6f5805998 100644
(file)
--- 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;
strcpy(CCC->fake_roomname, "");
CCC->logged_in = 0;
- /* Check to see if the user was deleted whil
st
logged in and purge them if necessary */
+ /* Check to see if the user was deleted whil
e
logged in and purge them if necessary */
if ((CCC->user.axlevel == AxDeleted) && (CCC->user.usernum)) {
purge_user(CCC->user.fullname);
}
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 */
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);
return(ERROR + NO_SUCH_USER);
+ }
if (CtdlGetUser(&usbuf, pname) != 0) {
syslog(LOG_ERR, "user_ops: cannot purge user <%s> - not found", pname);
if (CtdlGetUser(&usbuf, pname) != 0) {
syslog(LOG_ERR, "user_ops: cannot purge user <%s> - not found", pname);