From 7101b7b864df280059750c0de4d6b9d41e907122 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Tue, 9 Jul 2013 23:11:28 +0100 Subject: Now hexchat_hook_server_attrs() and hexchat_hook_print_attrs() is called when it should. This should close #661. --- src/common/text.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common/text.c') diff --git a/src/common/text.c b/src/common/text.c index a0e860ce..f251283b 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -2086,7 +2086,9 @@ text_emit (int index, session *sess, char *a, char *b, char *c, char *d, for (i = 5; i < PDIWORDS; i++) word[i] = "\000"; - if (plugin_emit_print (sess, word)) + /* don't use || here, since it might short-circuit */ + if (plugin_emit_print (sess, word) + + plugin_emit_print_attrs (sess, word, timestamp)) return; /* If a plugin's callback executes "/close", 'sess' may be invalid */ -- cgit 1.4.1