From 4cbabe2a83541fec27679cfd23fb460af279c84e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 28 Jan 2001 01:45:31 +0000 Subject: nicklist_find() now finds only full nicks, nicklist_find_mask() finds nick masks. This fixes *a* and similiar emphasis where irssi tried to find nick mask *a* instead of nick *a*. Also, emphasis with highascii didn't work unless emphasis_multiword was set ON. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1143 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-messages.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fe-common/core/fe-messages.c') diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c index dcc32e10..6fb6fc1d 100644 --- a/src/fe-common/core/fe-messages.c +++ b/src/fe-common/core/fe-messages.c @@ -63,12 +63,12 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text) /* check that the beginning marker starts a word, and * that the matching end marker ends a word */ - if ((pos > 0 && isalnum(bgn[-1])) || !ishighalnum(bgn[1])) + if ((pos > 0 && ishighalnum(bgn[-1])) || !ishighalnum(bgn[1])) continue; if ((end = strchr(bgn+1, *bgn)) == NULL) continue; if (!ishighalnum(end[-1]) || - isalnum(end[1]) || end[1] == type) + ishighalnum(end[1]) || end[1] == type) continue; if (IS_CHANNEL(item)) { @@ -88,7 +88,7 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text) if (!settings_get_bool("emphasis_multiword")) { char *c; for (c = bgn+1; c != end; c++) { - if (!isalnum(*c)) + if (!ishighalnum(*c)) break; } if (c != end) continue; @@ -316,7 +316,7 @@ static void sig_message_quit(SERVER_REC *server, const char *nick, if (!nicklist_find(rec, nick)) continue; - + if (ignore_check(server, nick, address, rec->name, reason, MSGLEVEL_QUITS)) { count++; -- cgit v1.2.3