More changes to get attachments working.
[citadel.git] / citadel / commands.c
index 03ddacfcdf552b293b05ca9e0dc096e2e6bcf6ef..5ca24d2db79e2ed1d58a0187e530c507950e8c11 100644 (file)
@@ -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]);