make 'show modules like' not case sensitive (issue #4990)
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 22 Aug 2005 18:43:32 +0000 (18:43 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 22 Aug 2005 18:43:32 +0000 (18:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6349 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cli.c

diff --git a/cli.c b/cli.c
index c7d5591..e4ab933 100755 (executable)
--- a/cli.c
+++ b/cli.c
@@ -235,7 +235,7 @@ static int climodentryfd = -1;
 static int modlist_modentry(const char *module, const char *description, int usecnt, const char *like)
 {
        /* Comparing the like with the module */
-       if (strstr(module, like) != NULL) {
+       if (strcasestr(module, like) ) {
                ast_cli(climodentryfd, MODLIST_FORMAT, module, description, usecnt);
                return 1;
        }