LIST command: compare pattern case insensitive
This commit is contained in:
parent
a4d1e6007f
commit
fdfc27265e
|
@ -645,10 +645,12 @@ IRC_LIST( CLIENT *Client, REQUEST *Req )
|
||||||
|
|
||||||
while (pattern) {
|
while (pattern) {
|
||||||
/* Loop through all the channels */
|
/* Loop through all the channels */
|
||||||
|
if (Req->argc > 0)
|
||||||
|
ngt_LowerStr(pattern);
|
||||||
chan = Channel_First();
|
chan = Channel_First();
|
||||||
while (chan) {
|
while (chan) {
|
||||||
/* Check search pattern */
|
/* Check search pattern */
|
||||||
if (Match(pattern, Channel_Name(chan))) {
|
if (MatchCaseInsensitive(pattern, Channel_Name(chan))) {
|
||||||
/* Gotcha! */
|
/* Gotcha! */
|
||||||
if (!strchr(Channel_Modes(chan), 's')
|
if (!strchr(Channel_Modes(chan), 's')
|
||||||
|| Channel_IsMemberOf(chan, from)) {
|
|| Channel_IsMemberOf(chan, from)) {
|
||||||
|
|
Loading…
Reference in New Issue