changeset 12755:505bc707b641

[gaim-migrate @ 15102] [ 1385161 ] Adding a SIP/SIMPLE buddy without sip: shouldn't abort Now automatically adding sip: committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Sat, 07 Jan 2006 20:06:58 +0000
parents d37adb7af391
children 6ef1cdc26b40
files src/protocols/simple/simple.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);