mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 18:50:19 +00:00
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.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user