diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-09 01:40:03 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-09 01:40:03 +0100 |
commit | 5a599a1550c670649dba681e702864d55d2e3795 (patch) | |
tree | bfc80d6f06c731035a18ab63119e4fe0623ae341 | |
parent | aa7ce1b3dd961e948e907460bd42bf1592ea1717 (diff) |
Room names on OSCAR can't start with digits, this broke the "chat with"
command on ICQ so far. Just prepend "icq_" and it'll work.
-rw-r--r-- | protocols/oscar/oscar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index e0c32257..5d23c36a 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -2650,7 +2650,8 @@ struct groupchat *oscar_chat_with(struct im_connection * ic, char *who) static int chat_id = 0; char * chatname; - chatname = g_strdup_printf("%s%d", ic->acc->user, chat_id++); + chatname = g_strdup_printf("%s%s_%d", isdigit(*ic->acc->user) ? "icq_" : "", + ic->acc->user, chat_id++); ret = oscar_chat_join(ic, chatname, NULL, NULL); |