[Freeswitch-svn] [commit] r11044 - freeswitch/trunk/libs/esl

FreeSWITCH SVN mikej at freeswitch.org
Thu Jan 1 10:57:30 PST 2009


Author: mikej
Date: Thu Jan  1 13:57:30 2009
New Revision: 11044

Log:
fix help

Modified:
   freeswitch/trunk/libs/esl/fs_cli.c

Modified: freeswitch/trunk/libs/esl/fs_cli.c
==============================================================================
--- freeswitch/trunk/libs/esl/fs_cli.c	(original)
+++ freeswitch/trunk/libs/esl/fs_cli.c	Thu Jan  1 13:57:30 2009
@@ -243,24 +243,23 @@
 
 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 @@
 
 	}
 
-
- done:
-	
 #ifdef HAVE_EDITLINE
+ done:
 	history(myhistory, &ev, H_SAVE, hfile);
 
 	/* Clean up our memory */



More information about the Freeswitch-svn mailing list