]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix help
authorMichael Jerris <mike@jerris.com>
Thu, 1 Jan 2009 18:57:30 +0000 (18:57 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 1 Jan 2009 18:57:30 +0000 (18:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11044 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/fs_cli.c

index 0087d3e3e8549ffca4d496db4a96c863dd675235..7fb3a734dc5c9325c791cb6c9629c36eec9cbb8e 100644 (file)
@@ -243,24 +243,23 @@ static void *msg_thread_run(esl_thread_t *me, void *obj)
 
 static int process_command(esl_handle_t *handle, const char *cmd) 
 {
-
-       if (!strcasecmp(cmd, "help")) {
-               printf(
-                          "Command                    \tDescription\n"
-                          "-----------------------------------------------\n"
-                          "/help                      \tHelp\n"
-                          "/exit, /quit, /bye, ...    \tExit the program.\n"
-                          "/event, /noevent, /nixevent\tEvent commands.\n"
-                          "/log, /nolog               \tLog commands.\n"
-                          "/filter                    \tFilter commands.\n"
-                          "\n"
-                          );
-
-               goto end;
-       }
-
        if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) {
                
+               if (!strcasecmp(cmd, "help")) {
+                       printf(
+                                  "Command                    \tDescription\n"
+                                  "-----------------------------------------------\n"
+                                  "/help                      \tHelp\n"
+                                  "/exit, /quit, /bye, ...    \tExit the program.\n"
+                                  "/event, /noevent, /nixevent\tEvent commands.\n"
+                                  "/log, /nolog               \tLog commands.\n"
+                                  "/filter                    \tFilter commands.\n"
+                                  "\n"
+                                  );
+
+                       goto end;
+               }
+
                if (
                        !strcasecmp(cmd, "exit") ||
                        !strcasecmp(cmd, "quit") ||
@@ -737,10 +736,8 @@ int main(int argc, char *argv[])
 
        }
 
-
- done:
-       
 #ifdef HAVE_EDITLINE
+ done:
        history(myhistory, &ev, H_SAVE, hfile);
 
        /* Clean up our memory */