Mercurial > pidgin
comparison libpurple/protocols/msn/msn.c @ 28280:77a007e0de1f
Concordance between "Usernames" and "addresses"
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 19 Sep 2009 03:44:25 +0000 |
parents | 36c6601d650a |
children | c3f79073c9be b1284d63b969 |
comparison
equal
deleted
inserted
replaced
28279:126251d39bcc | 28280:77a007e0de1f |
---|---|
1421 } | 1421 } |
1422 else | 1422 else |
1423 { | 1423 { |
1424 PurpleBuddy * buddy = purple_find_buddy(session->account, who); | 1424 PurpleBuddy * buddy = purple_find_buddy(session->account, who); |
1425 gchar *buf; | 1425 gchar *buf; |
1426 buf = g_strdup_printf(_("Unable to add the buddy %s because the username is invalid. Usernames must be a valid email address."), who); | 1426 buf = g_strdup_printf(_("Unable to add the buddy %s because the username is invalid. Usernames must be valid email addresses."), who); |
1427 if (!purple_conv_present_error(who, session->account, buf)) | 1427 if (!purple_conv_present_error(who, session->account, buf)) |
1428 purple_notify_error(purple_account_get_connection(session->account), NULL, _("Unable to Add"), buf); | 1428 purple_notify_error(purple_account_get_connection(session->account), NULL, _("Unable to Add"), buf); |
1429 g_free(buf); | 1429 g_free(buf); |
1430 | 1430 |
1431 /* Remove from local list */ | 1431 /* Remove from local list */ |
1511 | 1511 |
1512 bname = purple_buddy_get_name(buddy); | 1512 bname = purple_buddy_get_name(buddy); |
1513 | 1513 |
1514 if (!purple_email_is_valid(bname)) { | 1514 if (!purple_email_is_valid(bname)) { |
1515 gchar *buf; | 1515 gchar *buf; |
1516 buf = g_strdup_printf(_("Unable to add the buddy %s because the username is invalid. Usernames must be a valid email address."), bname); | 1516 buf = g_strdup_printf(_("Unable to add the buddy %s because the username is invalid. Usernames must be valid email addresses."), bname); |
1517 if (!purple_conv_present_error(bname, purple_connection_get_account(gc), buf)) | 1517 if (!purple_conv_present_error(bname, purple_connection_get_account(gc), buf)) |
1518 purple_notify_error(gc, NULL, _("Unable to Add"), buf); | 1518 purple_notify_error(gc, NULL, _("Unable to Add"), buf); |
1519 g_free(buf); | 1519 g_free(buf); |
1520 | 1520 |
1521 /* Remove from local list */ | 1521 /* Remove from local list */ |