From 1f9f9b9a395351fd2b001c24ffe89c546723763d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Tue, 23 Sep 2014 22:59:01 +0200 Subject: Simplify the plugin API --- plugins/irc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/irc.c') diff --git a/plugins/irc.c b/plugins/irc.c index c0e967d..554c00c 100644 --- a/plugins/irc.c +++ b/plugins/irc.c @@ -279,12 +279,10 @@ on_irc_message (const struct irc_message *msg, const char *raw, void *user_data) } static void -on_data (void *handle, struct unit *u, struct str *data) +on_data (void *handle, const void *data, size_t len) { - (void) u; - struct scan_data *scan = handle; - str_append_str (&scan->input, data); + str_append_data (&scan->input, data, len); irc_process_buffer (&scan->input, on_irc_message, scan); } -- cgit v1.2.3