]> code.citadel.org Git - citadel.git/blobdiff - citadel/commands.c
* Image viewer code for the text client. Hit 'I' to view an image
[citadel.git] / citadel / commands.c
index a057577f782b251341704d71a7284f8ef22dfe83..bd5cff14f9f1fd96524fa696206ef8925f2652f1 100644 (file)
@@ -736,6 +736,7 @@ void load_command_set(void)
        for (i = 0; i < MAX_EDITORS; i++)
                strcpy(editor_paths[i], "");
        strcpy(printcmd, "");
+       strcpy(imagecmd, "");
        strcpy(rc_username, "");
        strcpy(rc_password, "");
        rc_floor_mode = 0;
@@ -824,6 +825,9 @@ void load_command_set(void)
                if (!strncasecmp(buf, "printcmd=", 9))
                        strcpy(printcmd, &buf[9]);
 
+               if (!strncasecmp(buf, "imagecmd=", 9))
+                       strcpy(imagecmd, &buf[9]);
+
                if (!strncasecmp(buf, "expcmd=", 7))
                        strcpy(rc_exp_cmd, &buf[7]);