]> code.citadel.org Git - citadel.git/blobdiff - citadel/control.c
SMTP: fix authentication.
[citadel.git] / citadel / control.c
index 1e469b489ef84178f4466574a9ad5d2b780e1d11..ea1591f9c448943d8ffbdf8a83fa581b9f30f3f1 100644 (file)
 #include "user_ops.h"
 #include "database.h"
 #include "threads.h"
-
-#ifndef HAVE_SNPRINTF
-#include "snprintf.h"
-#endif
-
 #include "ctdl_module.h"
 
 struct CitControl CitControl;
@@ -693,8 +688,9 @@ void cmd_conf(char *argbuf)
                }
                put_config();
                snprintf(buf, sizeof buf,
-                        "The global system configuration has been edited by %s.\n",
-                        CC->curr_user);
+                       "The global system configuration has been edited by %s.\n",
+                        (CC->logged_in ? CC->curr_user : "an administrator")
+               );
                CtdlAideMessage(buf,"Citadel Configuration Manager Message");
 
                if (!IsEmptyStr(config.c_logpages))