From 2865d3a33fd64e13c23faaf8f211bb64e317c162 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 11 Mar 2002 04:30:13 +0000 Subject: [PATCH] /SET max_wildcard_modes 0 should disable the checking git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2578 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/modes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 8cc4bb64..affecc34 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -595,7 +595,7 @@ static char *get_nicks(IRC_SERVER_REC *server, WI_ITEM_REC *item, GHashTable *optlist; char **matches, **match, *ret, *channame, *nicks; void *free_arg; - int count; + int count, max_modes; if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST | PARAM_FLAG_OPTIONS | PARAM_FLAG_OPTCHAN_NAME, @@ -621,7 +621,8 @@ static char *get_nicks(IRC_SERVER_REC *server, WI_ITEM_REC *item, } else { count = get_wildcard_nicks(str, *match, channel, op, voice); - if (count > settings_get_int("max_wildcard_modes") && + max_modes = settings_get_int("max_wildcard_modes"); + if (max_modes > 0 && count > max_modes && g_hash_table_lookup(optlist, "yes") == NULL) { /* too many matches */ g_string_free(str, TRUE);