Mercurial > pidgin
comparison libpurple/protocols/jabber/presence.c @ 27607:f95bcb5eb047
Support connecting to IDNA XMPP domains.
Also fix two small issues: an invalid write in jabber_close when
there is no open connection and the fact that jabber_id_new is now
much more restrictive and won't validate "foo@bar.com/", which is what
the PurpleAccount username looks like (since Pidgin defaults to an
empty Resource).
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 18 Jul 2009 07:23:09 +0000 |
parents | b448b259e3cf |
children | 735040819c16 |
comparison
equal
deleted
inserted
replaced
27606:386265b369c9 | 27607:f95bcb5eb047 |
---|---|
65 const char *username; | 65 const char *username; |
66 | 66 |
67 g_return_if_fail(js->user != NULL); | 67 g_return_if_fail(js->user != NULL); |
68 | 68 |
69 account = purple_connection_get_account(js->gc); | 69 account = purple_connection_get_account(js->gc); |
70 username = purple_account_get_username(account); | 70 username = purple_connection_get_display_name(js->gc); |
71 if (status == NULL) | 71 if (status == NULL) |
72 status = purple_account_get_active_status(account); | 72 status = purple_account_get_active_status(account); |
73 | 73 |
74 if (purple_find_buddy(account, username)) { | 74 if (purple_find_buddy(account, username)) { |
75 JabberBuddy *jb = jabber_buddy_find(js, username, TRUE); | 75 JabberBuddy *jb = jabber_buddy_find(js, username, TRUE); |