diff options
| author | Alexander Barton <alex@barton.de> | 2012-01-06 19:55:21 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-01-06 19:55:21 +0100 |
| commit | fdfc27265ef27e445de89217d08f9a57219355df (patch) | |
| tree | beaa28c6ba59e150374364504b314f4687870317 | |
| parent | a4d1e6007fe50e14888769aab2b650ba1792fa9f (diff) | |
| download | ngircd-fdfc27265ef27e445de89217d08f9a57219355df.tar.gz ngircd-fdfc27265ef27e445de89217d08f9a57219355df.zip | |
LIST command: compare pattern case insensitive
| -rw-r--r-- | src/ngircd/irc-channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c index c5eb369d..94a8a4d7 100644 --- a/src/ngircd/irc-channel.c +++ b/src/ngircd/irc-channel.c @@ -645,10 +645,12 @@ IRC_LIST( CLIENT *Client, REQUEST *Req ) while (pattern) { /* Loop through all the channels */ + if (Req->argc > 0) + ngt_LowerStr(pattern); chan = Channel_First(); while (chan) { /* Check search pattern */ - if (Match(pattern, Channel_Name(chan))) { + if (MatchCaseInsensitive(pattern, Channel_Name(chan))) { /* Gotcha! */ if (!strchr(Channel_Modes(chan), 's') || Channel_IsMemberOf(chan, from)) { |