summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-11 04:30:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-11 04:30:13 +0000
commit2865d3a33fd64e13c23faaf8f211bb64e317c162 (patch)
tree814bcdbaaa2bdcaa2aae562d8d6773c0fb80df0a /src/irc
parent1ec1cb83829564565de2024d4359bd7319dc1099 (diff)
downloadirssi-2865d3a33fd64e13c23faaf8f211bb64e317c162.zip
/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
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/modes.c5
1 files 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);