mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
Don't break the API.
Have a ignore_find_full method that is the one that all the new code should be using and provide some working stubs for ignore_find and ignore_find_noact.
This commit is contained in:
parent
609f3ba6c2
commit
dbee606c60
4 changed files with 22 additions and 7 deletions
|
|
@ -158,7 +158,7 @@ static void cmd_ignore(const char *data)
|
|||
channels = (chanarg == NULL || *chanarg == '\0') ? NULL :
|
||||
g_strsplit(chanarg, ",", -1);
|
||||
|
||||
rec = ignore_find(servertag, mask, patternarg, channels,
|
||||
rec = ignore_find_full(servertag, mask, patternarg, channels,
|
||||
IGNORE_FIND_PATTERN | ((level & MSGLEVEL_NO_ACT) ? IGNORE_FIND_NOACT : 0));
|
||||
new_ignore = rec == NULL;
|
||||
|
||||
|
|
@ -237,9 +237,9 @@ static void cmd_unignore(const char *data)
|
|||
chans[0] = mask;
|
||||
mask = NULL;
|
||||
}
|
||||
rec = ignore_find("*", mask, NULL, (char **) chans, 0);
|
||||
rec = ignore_find_full("*", mask, NULL, (char **) chans, 0);
|
||||
if (rec == NULL) {
|
||||
rec = ignore_find("*", mask, NULL, (char **) chans, IGNORE_FIND_NOACT);
|
||||
rec = ignore_find_full("*", mask, NULL, (char **) chans, IGNORE_FIND_NOACT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue