summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-07-09 23:11:28 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-07-09 23:11:28 +0100
commit7101b7b864df280059750c0de4d6b9d41e907122 (patch)
treee294b2b2d5e7e08c744bd8ec891fc28543d17790 /src/common/text.c
parent98aa62f637d4ced952a168cb19f8d2fb038c6a16 (diff)
Now hexchat_hook_server_attrs() and hexchat_hook_print_attrs() is called
when it should. This should close #661.
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c4
1 files changed, 3 insertions, 1 deletions
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 */