]> code.citadel.org Git - citadel.git/commitdiff
Handle all non 0 format types as flat ascii
authorArt Cancro <ajc@citadel.org>
Fri, 23 Apr 1999 03:42:44 +0000 (03:42 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 23 Apr 1999 03:42:44 +0000 (03:42 +0000)
daphne/message.cpp

index 9c9b968e50783e7586f4264ccbf82ea8ddb1803b..58b7e0ae63e1c0ad08d3cc72d7e3c1bd0e01edea 100644 (file)
@@ -41,7 +41,7 @@ CitMessage::CitMessage(CitClient *sock, wxString getmsg_cmd, wxString inRoom) {
                                room = buf.Mid(5);
                        else if (!key.CmpNoCase("type")) {
                                format_type = atoi(buf.Mid(5));
-                               if (format_type == 1) {
+                               if (format_type != 0) {
                                        msgtext.Append("<PRE>\n");
                                }
                        }
@@ -50,7 +50,7 @@ CitMessage::CitMessage(CitClient *sock, wxString getmsg_cmd, wxString inRoom) {
 
                // Otherwise, process message text
                } else {
-                       if (format_type == 1) {
+                       if (format_type != 0) {
                                msgtext.Append(buf);
                                msgtext.Append("\n");
                        } else {
@@ -61,6 +61,6 @@ CitMessage::CitMessage(CitClient *sock, wxString getmsg_cmd, wxString inRoom) {
                        }
                }
        }
-       if (format_type == 1
+       if (format_type != 0
                msgtext.Append("</PRE>\n");
 }