aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/oscar/oscar.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/oscar/oscar.c')
-rw-r--r--protocols/oscar/oscar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c
index 41a194ab..de4efb6a 100644
--- a/protocols/oscar/oscar.c
+++ b/protocols/oscar/oscar.c
@@ -2551,6 +2551,7 @@ struct groupchat *oscar_chat_join(struct im_connection *ic, const char *room,
struct groupchat *oscar_chat_with(struct im_connection * ic, char *who)
{
struct oscar_data * od = (struct oscar_data *)ic->proto_data;
+ struct groupchat *ret;
static int chat_id = 0;
char * chatname, *s;
@@ -2561,13 +2562,12 @@ struct groupchat *oscar_chat_with(struct im_connection * ic, char *who)
if (!isalnum(*s))
*s = '0';
- imcb_chat_new(ic, chatname);
- oscar_chat_join_internal(ic, chatname, NULL, NULL, 4);
+ ret = oscar_chat_join_internal(ic, chatname, NULL, NULL, 4);
aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0);
g_free(chatname);
- return NULL;
+ return ret;
}
void oscar_accept_chat(void *data)