Changeset 5a599a1


Ignore:
Timestamp:
2010-05-09T00:40:03Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7ee07c3, bd5eee3
Parents:
aa7ce1b
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    raa7ce1b r5a599a1  
    26512651        char * chatname;
    26522652       
    2653         chatname = g_strdup_printf("%s%d", ic->acc->user, chat_id++);
     2653        chatname = g_strdup_printf("%s%s_%d", isdigit(*ic->acc->user) ? "icq_" : "",
     2654                                   ic->acc->user, chat_id++);
    26542655 
    26552656        ret = oscar_chat_join(ic, chatname, NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.