Created
January 19, 2014 04:36
-
-
Save acdimalev/8500530 to your computer and use it in GitHub Desktop.
Switch Pidgin's default username for Jabber chats from the Jabber username to the account's local alias.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -r 1d3a0e42cb09 libpurple/protocols/jabber/chat.c | |
| --- a/libpurple/protocols/jabber/chat.c Mon Nov 25 16:51:46 2013 +0100 | |
| +++ b/libpurple/protocols/jabber/chat.c Wed Nov 27 01:39:56 2013 -0800 | |
| @@ -74,7 +74,8 @@ | |
| defaults = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free); | |
| - g_hash_table_insert(defaults, "handle", g_strdup(js->user->node)); | |
| + const char *alias = purple_account_get_alias(purple_connection_get_account(gc)); | |
| + g_hash_table_insert(defaults, "handle", g_strdup(alias ? alias : js->user->node)); | |
| if (js->chat_servers) | |
| g_hash_table_insert(defaults, "server", g_strdup(js->chat_servers->data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment