X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcommands.c;h=5ca24d2db79e2ed1d58a0187e530c507950e8c11;hb=5e73b14b909acb69a7595831119d06ba06238c85;hp=03ddacfcdf552b293b05ca9e0dc096e2e6bcf6ef;hpb=2196cbee27ab96f19a613a78cd966e4682a95ca9;p=citadel.git diff --git a/citadel/commands.c b/citadel/commands.c index 03ddacfcd..5ca24d2db 100644 --- a/citadel/commands.c +++ b/citadel/commands.c @@ -47,7 +47,7 @@ struct citcmd { #define IFNEXPERT if ((userflags&US_EXPERT)==0) -char rc_exp_beep; +int rc_exp_beep; char rc_exp_cmd[256]; char *gl_string; @@ -296,6 +296,7 @@ void load_command_set(void) { strcpy(rc_password,""); rc_floor_mode = 0; rc_exp_beep = 1; + rc_allow_attachments = 0; strcpy(rc_exp_cmd, ""); /* now try to open the citadel.rc file */ @@ -343,6 +344,10 @@ void load_command_set(void) { rc_exp_beep = atoi(&buf[5]); } + if (!struncmp(buf,"allow_attachments=", 18)) { + rc_allow_attachments = atoi(&buf[18]); + } + if (!struncmp(buf,"username=",9)) strcpy(rc_username,&buf[9]);