diff options
| author | Jan Hruban <hrubi13@gmail.com> | 2011-06-15 14:18:16 +0200 | 
|---|---|---|
| committer | Jan Hruban <hrubi13@gmail.com> | 2011-06-15 14:18:16 +0200 | 
| commit | c573f1b53466e34c26296227e4c661df9cae1c15 (patch) | |
| tree | b2fb25dc90bad7f71eb3316d26e3bec9943c4c7c | |
| parent | 17dd2eda62fa0b38907a6f565ab2203c7fbd270c (diff) | |
Don't create new channel when skype groupchat turns from DIALOG to MULTI_SUBSCRIBED (works only when user initiates the chat, otherwise new channel is created anyway)
| -rw-r--r-- | protocols/skype/skype.c | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/protocols/skype/skype.c b/protocols/skype/skype.c index ccbcaf37..e681a2c4 100644 --- a/protocols/skype/skype.c +++ b/protocols/skype/skype.c @@ -911,8 +911,11 @@ static void skype_parse_chat(struct im_connection *ic, char *line)  	if (gc)  		imcb_chat_free(gc);  	if (!strcmp(info, "STATUS MULTI_SUBSCRIBED")) { -		gc = imcb_chat_new(ic, id); -		imcb_chat_name_hint(gc, id); +		gc = bee_chat_by_title(ic->bee, ic, id); +		if (!gc) { +			gc = imcb_chat_new(ic, id); +			imcb_chat_name_hint(gc, id); +		}  		skype_printf(ic, "GET CHAT %s ADDER\n", id);  		skype_printf(ic, "GET CHAT %s TOPIC\n", id);  	} else if (!strcmp(info, "STATUS DIALOG") && sd->groupchat_with) { | 
