annotate libpurple/protocols/jabber/usernick.c @ 31460:c62dc6d25802

Add the DigiCert High Assurance CA-3 intermediate CA. For Facebook. Paul already added the other changes required for this but not the cert itself.
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 10 Apr 2011 02:35:17 +0000
parents a8cc50c2279f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
1 /*
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
2 * purple - Jabber Protocol Plugin
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
3 *
28048
c585572e80dd Remove specific copyright lines from the XMPP prpl.
Paul Aurich <paul@darkrain42.org>
parents: 28047
diff changeset
4 * Purple is the legal property of its developers, whose names are too numerous
c585572e80dd Remove specific copyright lines from the XMPP prpl.
Paul Aurich <paul@darkrain42.org>
parents: 28047
diff changeset
5 * to list here. Please refer to the COPYRIGHT file distributed with this
c585572e80dd Remove specific copyright lines from the XMPP prpl.
Paul Aurich <paul@darkrain42.org>
parents: 28047
diff changeset
6 * source distribution.
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
7 *
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
11 * (at your option) any later version.
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
12 *
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
16 * GNU General Public License for more details.
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
17 *
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
28047
8c991e09efcb Update various header copyrights thanks to licensecheck.
Paul Aurich <paul@darkrain42.org>
parents: 26791
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
21 *
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
22 */
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
23
19698
d32ed28cf645 Fix mingw build of xmpp prpl
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17870
diff changeset
24 #include "internal.h"
d32ed28cf645 Fix mingw build of xmpp prpl
Daniel Atallah <daniel.atallah@gmail.com>
parents: 17870
diff changeset
25
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
26 #include "usernick.h"
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
27 #include "pep.h"
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
28 #include <string.h>
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
29 #include "internal.h"
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
30 #include "request.h"
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
31 #include "status.h"
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
32
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
33 static void jabber_nick_cb(JabberStream *js, const char *from, xmlnode *items) {
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
34 /* it doesn't make sense to have more than one item here, so let's just pick the first one */
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
35 xmlnode *item = xmlnode_get_child(items, "item");
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
36 JabberBuddy *buddy = jabber_buddy_find(js, from, FALSE);
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
37 xmlnode *nick;
20058
5103485b4b26 Plug some memory leaks.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 20000
diff changeset
38 char *nickname = NULL;
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
39
26773
e816444c1a01 Handle User Nick notifications via <presence/> stanzas (receive-only). Refs #864.
Paul Aurich <paul@darkrain42.org>
parents: 25985
diff changeset
40 /* ignore the nick of people not on our buddy list */
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
41 if (!buddy || !item)
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
42 return;
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
43
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
44 nick = xmlnode_get_child_with_namespace(item, "nick", "http://jabber.org/protocol/nick");
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
45 if (!nick)
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
46 return;
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
47 nickname = xmlnode_get_data(nick);
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
48 serv_got_alias(js->gc, from, nickname);
20058
5103485b4b26 Plug some memory leaks.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 20000
diff changeset
49 g_free(nickname);
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
50 }
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
51
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
52 static void do_nick_set(JabberStream *js, const char *nick) {
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
53 xmlnode *publish, *nicknode;
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
54
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
55 publish = xmlnode_new("publish");
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
56 xmlnode_set_attrib(publish,"node","http://jabber.org/protocol/nick");
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
57 nicknode = xmlnode_new_child(xmlnode_new_child(publish, "item"), "nick");
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
58 xmlnode_set_namespace(nicknode, "http://jabber.org/protocol/nick");
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
59
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
60 if(nick && nick[0] != '\0')
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
61 xmlnode_insert_data(nicknode, nick, -1);
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
62
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
63 jabber_pep_publish(js, publish);
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
64 /* publish is freed by jabber_pep_publish -> jabber_iq_send -> jabber_iq_free
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
65 (yay for well-defined memory management rules) */
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
66 }
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
67
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
68 static void do_nick_got_own_nick_cb(JabberStream *js, const char *from, xmlnode *items) {
20058
5103485b4b26 Plug some memory leaks.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 20000
diff changeset
69 char *oldnickname = NULL;
26791
5872d1bc546f On errors, don't pretend we did fetch something, pass NULL.
Paul Aurich <paul@darkrain42.org>
parents: 26773
diff changeset
70 xmlnode *item = NULL;
31086
a8cc50c2279f Remove trailing whitespace
Richard Laager <rlaager@wiktel.com>
parents: 29498
diff changeset
71
26791
5872d1bc546f On errors, don't pretend we did fetch something, pass NULL.
Paul Aurich <paul@darkrain42.org>
parents: 26773
diff changeset
72 if (items)
5872d1bc546f On errors, don't pretend we did fetch something, pass NULL.
Paul Aurich <paul@darkrain42.org>
parents: 26773
diff changeset
73 item = xmlnode_get_child(items,"item");
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
74
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
75 if(item) {
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
76 xmlnode *nick = xmlnode_get_child_with_namespace(item,"nick","http://jabber.org/protocol/nick");
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
77 if(nick)
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
78 oldnickname = xmlnode_get_data(nick);
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
79 }
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
80
21570
dccfd999ffe7 merge of '76c07fcb434a2a7aa289734bb221c171a376d73b'
Evan Schoenberg <evan.s@dreskin.net>
parents: 21244
diff changeset
81 purple_request_input(js->gc, _("Set User Nickname"), _("Please specify a new nickname for you."),
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
82 _("This information is visible to all contacts on your contact list, so choose something appropriate."),
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
83 oldnickname, FALSE, FALSE, NULL, _("Set"), PURPLE_CALLBACK(do_nick_set), _("Cancel"), NULL,
21570
dccfd999ffe7 merge of '76c07fcb434a2a7aa289734bb221c171a376d73b'
Evan Schoenberg <evan.s@dreskin.net>
parents: 21244
diff changeset
84 purple_connection_get_account(js->gc), NULL, NULL, js);
20058
5103485b4b26 Plug some memory leaks.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 20000
diff changeset
85 g_free(oldnickname);
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
86 }
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
87
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
88 static void do_nick_set_nick(PurplePluginAction *action) {
29498
93e8e6331d44 jabber: Allow jabber_pep_request_item() to take NULL for JID; server's routing takes care of the rest
Paul Aurich <paul@darkrain42.org>
parents: 28048
diff changeset
89 PurpleConnection *gc = action->context;
93e8e6331d44 jabber: Allow jabber_pep_request_item() to take NULL for JID; server's routing takes care of the rest
Paul Aurich <paul@darkrain42.org>
parents: 28048
diff changeset
90 JabberStream *js = purple_connection_get_protocol_data(gc);
25952
5f9a24d1c25e Remove some extra trailing whitespace I noticed after merging mlundblad's
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21570
diff changeset
91
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
92 /* since the nickname might have been changed by another resource of this account, we always have to request the old one
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
93 from the server to present as the default for the new one */
29498
93e8e6331d44 jabber: Allow jabber_pep_request_item() to take NULL for JID; server's routing takes care of the rest
Paul Aurich <paul@darkrain42.org>
parents: 28048
diff changeset
94 jabber_pep_request_item(js, NULL, "http://jabber.org/protocol/nick", NULL, do_nick_got_own_nick_cb);
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
95 }
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
96
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
97 void jabber_nick_init(void) {
25017
26eabe8e739b Removing short-names for features and calculating own caps hash.
Tobias Markmann <tfar@soc.pidgin.im>
parents: 21570
diff changeset
98 jabber_add_feature("http://jabber.org/protocol/nick", jabber_pep_namespace_only_when_pep_enabled_cb);
26eabe8e739b Removing short-names for features and calculating own caps hash.
Tobias Markmann <tfar@soc.pidgin.im>
parents: 21570
diff changeset
99 jabber_pep_register_handler("http://jabber.org/protocol/nick", jabber_nick_cb);
17870
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
100 }
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
101
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
102 void jabber_nick_init_action(GList **m) {
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
103 PurplePluginAction *act = purple_plugin_action_new(_("Set Nickname..."), do_nick_set_nick);
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
104 *m = g_list_append(*m, act);
5f4dcaf1f886 User Nickname now sets the buddy's server_alias, which means that no UI changes are required for supporting this XEP. Also forgot to add usernick.[hc].
Andreas Monitzer <pidgin@monitzer.com>
parents:
diff changeset
105 }