# HG changeset patch # User Thomas Butter # Date 1136664418 0 # Node ID 505bc707b6414c0ea3aa70060be82b026df8947c # Parent d37adb7af39173edbd357361c68c1b2a50907c35 [gaim-migrate @ 15102] [ 1385161 ] Adding a SIP/SIMPLE buddy without sip: shouldn't abort Now automatically adding sip: committer: Tailor Script diff -r d37adb7af391 -r 505bc707b641 src/protocols/simple/simple.c --- a/src/protocols/simple/simple.c Sat Jan 07 18:50:37 2006 +0000 +++ b/src/protocols/simple/simple.c Sat Jan 07 20:06:58 2006 +0000 @@ -199,11 +199,9 @@ struct simple_account_data *sip = (struct simple_account_data *)gc->proto_data; struct simple_buddy *b; if(strncmp("sip:", buddy->name,4)) { - gchar *buf = g_strdup_printf(_("Could not add the buddy %s because every simple user has to start with 'sip:'."), buddy->name); - gaim_notify_error(gc, NULL, _("Unable To Add"), buf); + gchar *buf = g_strdup_printf("sip:%s",buddy->name); + gaim_blist_rename_buddy(buddy, buf); g_free(buf); - gaim_blist_remove_buddy(buddy); - return; } if(!g_hash_table_lookup(sip->buddies, buddy->name)) { b = g_new0(struct simple_buddy, 1);