From 5ff46180e5378acd6d103d9314175c78530bda7e Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 23 Jan 2015 03:10:38 -0300 Subject: purple: cleanup, remove one usage of static local_bee Shouldn't affect anything, and still doesn't allow initializing libpurple more than once, but whatever. --- protocols/purple/purple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index aefd353b..d2b2bc67 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -999,6 +999,7 @@ static void *prplcb_request_action(const char *title, const char *primary, const va_list actions) { struct prplcb_request_action_data *pqad; + struct im_connection *ic = purple_ic_by_pa(account); int i; char *q; @@ -1024,7 +1025,7 @@ static void *prplcb_request_action(const char *title, const char *primary, const /* TODO: IRC stuff here :-( */ q = g_strdup_printf("Request: %s\n\n%s\n\n%s", title, primary, secondary); - pqad->bee_data = query_add(local_bee->ui_data, purple_ic_by_pa(account), q, + pqad->bee_data = query_add(ic->bee->ui_data, ic, q, prplcb_request_action_yes, prplcb_request_action_no, g_free, pqad); g_free(q); -- cgit v1.2.3