projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some fields in the legacy CONF PUT command, they were set up as booleans when...
[citadel.git]
/
citadel
/
control.c
diff --git
a/citadel/control.c
b/citadel/control.c
index a9d4d0c7c8c7c49b8df1f40a197f56425d828b34..8e0b487265003d7db54c9d884a850ef40843444f 100644
(file)
--- a/
citadel/control.c
+++ b/
citadel/control.c
@@
-351,7
+351,7
@@
void cmd_conf(char *argbuf)
/* placeholder -- field no longer in use */
break;
case 4:
/* placeholder -- field no longer in use */
break;
case 4:
- CtdlSetConfigInt("c_creataide",
atoi
(buf));
+ CtdlSetConfigInt("c_creataide",
confbool
(buf));
break;
case 5:
CtdlSetConfigInt("c_sleeping", atoi(buf));
break;
case 5:
CtdlSetConfigInt("c_sleeping", atoi(buf));
@@
-378,10
+378,10
@@
void cmd_conf(char *argbuf)
CtdlSetConfigInt("c_restrict", confbool(buf));
break;
case 12:
CtdlSetConfigInt("c_restrict", confbool(buf));
break;
case 12:
- CtdlSetConfig
Int("c_site_location", confbool(buf)
);
+ CtdlSetConfig
Str("c_site_location", buf
);
break;
case 13:
break;
case 13:
- CtdlSetConfig
Int("c_sysadm", confbool(buf)
);
+ CtdlSetConfig
Str("c_sysadm", buf
);
break;
case 14:
i = atoi(buf);
break;
case 14:
i = atoi(buf);
@@
-581,7
+581,7
@@
void cmd_conf(char *argbuf)
"The global system configuration has been edited by %s.\n",
(CC->logged_in ? CC->curr_user : "an administrator")
);
"The global system configuration has been edited by %s.\n",
(CC->logged_in ? CC->curr_user : "an administrator")
);
- CtdlAideMessage(buf,"Citadel Configuration Manager Message");
+ CtdlAideMessage(buf,
"Citadel Configuration Manager Message");
if (!IsEmptyStr(CtdlGetConfigStr("c_logpages")))
CtdlCreateRoom(CtdlGetConfigStr("c_logpages"), 3, "", 0, 1, 1, VIEW_BBS);
if (!IsEmptyStr(CtdlGetConfigStr("c_logpages")))
CtdlCreateRoom(CtdlGetConfigStr("c_logpages"), 3, "", 0, 1, 1, VIEW_BBS);