Explorar el Código

changed note* commands checking.

default hace 1 año
padre
commit
b3ca9a50e7
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      main.c

+ 3 - 1
main.c

@@ -622,7 +622,9 @@ int main(int argc, char *argv[])
         return 0;
         return 0;
     }
     }
 
 
-    if (xs_match(cmd, "note|note_unlisted|note_mention")) { /** **/
+    if (strcmp(cmd, "note") == 0 ||             /** **/
+        strcmp(cmd, "note_unlisted") == 0 ||    /** **/
+        strcmp(cmd, "note_mention") == 0) {     /** **/
         xs *content = NULL;
         xs *content = NULL;
         xs *msg = NULL;
         xs *msg = NULL;
         xs *c_msg = NULL;
         xs *c_msg = NULL;