Mercurial > pidgin
changeset 19629:9968fff36e20
If no username is set, point user to a web page where to set it, and disconnect.
This is a workaround until the username can be set within msimprpl.
See #2844.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Wed, 05 Sep 2007 04:52:33 +0000 |
parents | 4c5e7db85e29 |
children | 39d620a93907 9cc67c3d145e 15cb06e2d387 |
files | libpurple/protocols/myspace/myspace.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Wed Sep 05 04:18:59 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Wed Sep 05 04:52:33 2007 +0000 @@ -1543,6 +1543,12 @@ if (msim_msg_get_integer(msg, "uniquenick") == session->userid) { purple_debug_info("msim_we_are_logged_on", "TODO: pick username"); + /* No username is set. */ + purple_notify_error(session->account, + _("No username set"), + _("Please go to http://editprofile.myspace.com/index.cfm?fuseaction=profile.username and choose a username and try to login again."), NULL); + purple_connection_error(session->gc, _("No username set")); + return FALSE; } body = msim_msg_new(