| 71 xmlnode *nick = xmlnode_get_child_with_namespace(item,"nick","http://jabber.org/protocol/nick"); |
71 xmlnode *nick = xmlnode_get_child_with_namespace(item,"nick","http://jabber.org/protocol/nick"); |
| 72 if(nick) |
72 if(nick) |
| 73 oldnickname = xmlnode_get_data(nick); |
73 oldnickname = xmlnode_get_data(nick); |
| 74 } |
74 } |
| 75 |
75 |
| 76 purple_request_input(js->gc, _("Set User Nickname"), _("Please specify a new nickname for you."), |
76 purple_request_input_with_hint(js->gc, _("Set User Nickname"), _("Please specify a new nickname for you."), |
| 77 _("This information is visible to all contacts on your contact list, so choose something appropriate."), |
77 _("This information is visible to all contacts on your contact list, so choose something appropriate."), |
| 78 oldnickname, FALSE, FALSE, NULL, _("Set"), PURPLE_CALLBACK(do_nick_set), _("Cancel"), NULL, |
78 oldnickname, FALSE, FALSE, NULL, _("Set"), PURPLE_CALLBACK(do_nick_set), _("Cancel"), NULL, |
| 79 purple_connection_get_account(js->gc), NULL, NULL, js); |
79 purple_connection_get_account(js->gc), NULL, NULL, "blist", js); |
| 80 g_free(oldnickname); |
80 g_free(oldnickname); |
| 81 } |
81 } |
| 82 |
82 |
| 83 static void do_nick_set_nick(PurplePluginAction *action) { |
83 static void do_nick_set_nick(PurplePluginAction *action) { |
| 84 PurpleConnection *gc = (PurpleConnection *) action->context; |
84 PurpleConnection *gc = (PurpleConnection *) action->context; |