summaryrefslogtreecommitdiff
path: root/src/irc/core/ignore.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-30 22:49:48 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-30 22:49:48 +0000
commit2b8580c8a73ecdb2846b745c32b0ba51be4458e3 (patch)
tree04a68511ca0e66618883afb9e8ff83ca4425f972 /src/irc/core/ignore.c
parent965def294b3787052a9285ef22d6b01cd41a2ebe (diff)
downloadirssi-2b8580c8a73ecdb2846b745c32b0ba51be4458e3.zip
multiprotocol updates. SILC prints channel and private messages now
using the same message formats as IRC. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@699 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/ignore.c')
-rw-r--r--src/irc/core/ignore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/ignore.c b/src/irc/core/ignore.c
index ae85a22b..7ec3122e 100644
--- a/src/irc/core/ignore.c
+++ b/src/irc/core/ignore.c
@@ -56,7 +56,7 @@ static int ignore_check_replies(IGNORE_REC *rec, IRC_SERVER_REC *server,
for (tmp = nicks; tmp != NULL; tmp = tmp->next) {
NICK_REC *nick = tmp->data;
- if (irc_nick_match(nick->nick, text))
+ if (nick_match_msg(SERVER(server), text, nick->nick))
return TRUE;
}
g_slist_free(nicks);
@@ -114,7 +114,7 @@ int ignore_check(IRC_SERVER_REC *server, const char *nick, const char *host,
/* pattern */
patt_len = 0;
- if (rec->pattern != NULL) {
+ if (rec->pattern != NULL && text != NULL) {
if (!mask_len && !best_mask) {
patt_len = strlen(rec->pattern);
if (patt_len <= best_patt) continue;