[asterisk-commits] file: trunk r47544 - /trunk/main/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 13 09:41:45 MST 2006


Author: file
Date: Mon Nov 13 10:41:45 2006
New Revision: 47544

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47544
Log:
Return module show to a working state. (issue #8353 reported by jserve)

Modified:
    trunk/main/cli.c

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=47544&r1=47543&r2=47544
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Mon Nov 13 10:41:45 2006
@@ -408,7 +408,7 @@
 }
 
 static char modlist_help[] =
-"Usage: core show modules [like keyword]\n"
+"Usage: module show [like keyword]\n"
 "       Shows Asterisk modules currently in use, and usage statistics.\n";
 
 static char uptime_help[] =
@@ -487,12 +487,12 @@
 static int handle_modlist(int fd, int argc, char *argv[])
 {
 	char *like = "";
-	if (argc != 3 && argc != 5)
-		return RESULT_SHOWUSAGE;
-	else if (argc == 5) {
-		if (strcmp(argv[3],"like")) 
+	if (argc != 2 && argc != 4)
+		return RESULT_SHOWUSAGE;
+	else if (argc == 4) {
+		if (strcmp(argv[2],"like")) 
 			return RESULT_SHOWUSAGE;
-		like = argv[4];
+		like = argv[3];
 	}
 		
 	ast_mutex_lock(&climodentrylock);



More information about the asterisk-commits mailing list