From 40f26429f8e3466fb68af30076d1a297c84f5da6 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Thu, 28 Nov 2013 00:59:31 +0000 Subject: 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. --- src/common/dcc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/common/dcc.c') 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)) -- cgit 1.4.1