diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-23 22:59:01 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-23 22:59:01 +0200 |
commit | 1f9f9b9a395351fd2b001c24ffe89c546723763d (patch) | |
tree | d688869ae29c20c2e5deb72f4e35dd9d6233cb37 /plugins/irc.c | |
parent | f9d6627456e8232fe7a2ae1283347236aa2b34df (diff) | |
download | ponymap-1f9f9b9a395351fd2b001c24ffe89c546723763d.tar.gz ponymap-1f9f9b9a395351fd2b001c24ffe89c546723763d.tar.xz ponymap-1f9f9b9a395351fd2b001c24ffe89c546723763d.zip |
Simplify the plugin API
Diffstat (limited to 'plugins/irc.c')
-rw-r--r-- | plugins/irc.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |