Fixed some flood detection, ignoring and autoignoring bugs.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@339 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-14 17:52:03 +00:00 committed by cras
commit 47fd84c5bc
5 changed files with 41 additions and 11 deletions

View file

@ -155,7 +155,7 @@ static void cmd_ignore(const char *data)
args = "pattern channels";
params = cmd_get_params(data, 5 | PARAM_FLAG_MULTIARGS | PARAM_FLAG_GETREST,
&args, &patternarg, &chanarg, &mask, &levels);
if (levels == 0) cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
if (*levels == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
if (ischannel(*mask)) {
chanarg = mask;

View file

@ -29,7 +29,7 @@ FORMAT_REC fecommon_irc_flood_formats[] =
{ NULL, "Autoignore", 0 },
{ "autoignore", "Flood detected from %_$0%_, autoignoring for %_$1%_ minutes", 2, { 0, 1 } },
{ "autounignore", "Unignoring %_$0", 1, { 0 } },
{ "autounignore", "Removed autoignore from %_$0", 1, { 0 } },
{ NULL, NULL, 0 }
};