From 459dec8db85fdadba8e2ddeb2cf46b4992360e95 Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 6 Dec 2015 01:41:32 -0300 Subject: purple: fix crash when doing 'chat with' with skypeweb It was passing the wrong data to the callback - it was supposed to pass the data of the PurpleMenuItem but it passed the PurpleMenuItem itself. Probably also applies to other protocols too. It worked fine with jabber, which i'm guessing is what this code was tested with originally. It still whines about the null return value saying "(Possible) failure" but, eh, whatever. --- protocols/purple/purple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index 4c451db1..69fcbc4d 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -650,7 +650,7 @@ struct groupchat *purple_chat_with(struct im_connection *ic, char *who) /* Call the fucker. */ callback = (void *) mi->callback; - callback(&pb->node, menu->data); + callback(&pb->node, mi->data); return NULL; } -- cgit v1.2.3