diff options
author | TingPing <TingPing@users.noreply.github.com> | 2013-11-27 18:19:42 -0800 |
---|---|---|
committer | TingPing <TingPing@users.noreply.github.com> | 2013-11-27 18:19:42 -0800 |
commit | ae4e55b9220b906d156aba77e958115af7474de5 (patch) | |
tree | dcbc904de44ff5284d77e53168fc001c342e218d /src/common/text.c | |
parent | d38bbb1e2c96314dd61faa84f2908b90ae29b987 (diff) | |
parent | 40f26429f8e3466fb68af30076d1a297c84f5da6 (diff) |
Merge pull request #848 from orium/print-priority-847
Print{,_attr} and server{,_attr} hooks priority fix
Diffstat (limited to 'src/common/text.c')
-rw-r--r-- | src/common/text.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/common/text.c b/src/common/text.c index 58d3b45c..1afb0c18 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -2074,8 +2074,6 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d, int i; unsigned int stripcolor_args = (chanopt_is_set (prefs.hex_text_stripcolor_msg, sess->text_strip) ? 0xFFFFFFFF : 0); char tbuf[NICKLEN + 4]; - int eat1; - int eat2; if (prefs.hex_text_color_nicks && (index == XP_TE_CHANACTION || index == XP_TE_CHANMSG)) { @@ -2092,10 +2090,7 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d, for (i = 5; i < PDIWORDS; i++) word[i] = "\000"; - eat1 = plugin_emit_print (sess, word); - eat2 = plugin_emit_print_attrs (sess, word, timestamp); - - if (eat1 || eat2) + if (plugin_emit_print (sess, word, timestamp)) return; /* If a plugin's callback executes "/close", 'sess' may be invalid */ |