ignore -p when called from telnetd
[citadel.git] / textclient / src / citadel.c
index 52765a76b4a20870a0a37e898f51a3b30fcbcca4..5e8cc6203e7f964d4bdff2d549a8d0f376e1f63e 100644 (file)
@@ -1464,6 +1464,10 @@ int main(int argc, char **argv)
                        return 1;
 #endif
                }
+               if (!strcmp(argv[a], "-p")) {
+                       // ignore this argument when called from telnetd
+                       argc = shift(argc, argv, a, 1);
+               }
        }
        
        screen_new();