summary refs log tree commit diff stats
path: root/src/common/dcc.c
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-11-28 00:59:31 +0000
committerDiogo Sousa <diogogsousa@gmail.com>2013-11-28 02:11:33 +0000
commit40f26429f8e3466fb68af30076d1a297c84f5da6 (patch)
treedcbc904de44ff5284d77e53168fc001c342e218d /src/common/dcc.c
parentd38bbb1e2c96314dd61faa84f2908b90ae29b987 (diff)
Print{,_attr} and server{,_attr} hooks were incorrectly handled when both
version existed (regular and attrs).  Specifically, the priority was not
respected, and both versions were run even when EAT_PLUGIN was returned.

Fixes #847.
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r--src/common/dcc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index 57354ba9..ca1be140 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -557,8 +557,7 @@ dcc_chat_line (struct DCC *dcc, char *line)
 	for (i = 5; i < PDIWORDS; i++)
 		word[i] = "\000";
 
-	ret = plugin_emit_print (sess, word) 
-		+ plugin_emit_print_attrs (sess, word, 0);
+	ret = plugin_emit_print (sess, word, 0);
 
 	/* did the plugin close it? */
 	if (!g_slist_find (dcc_list, dcc))