Thu, 22 Aug 2013 01:36:58 +0530
Merged soc.2013.gobjectification branch
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
1 | /* |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
2 | * Purple's oscar protocol plugin |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
3 | * This file is the legal property of its developers. |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
4 | * Please see the AUTHORS file distributed alongside this file. |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
5 | * |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
6 | * This library is free software; you can redistribute it and/or |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
7 | * modify it under the terms of the GNU Lesser General Public |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
8 | * License as published by the Free Software Foundation; either |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
9 | * version 2 of the License, or (at your option) any later version. |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
10 | * |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
11 | * This library is distributed in the hope that it will be useful, |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
14 | * Lesser General Public License for more details. |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
15 | * |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
16 | * You should have received a copy of the GNU Lesser General Public |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
17 | * License along with this library; if not, write to the Free Software |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
19 | */ |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
20 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
21 | /* |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
22 | * Everything related to OSCAR authorization requests. |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
23 | */ |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
24 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
25 | #include "oscar.h" |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
26 | #include "request.h" |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
27 | |
|
31599
532045052a3f
Add invite message support to Oscar.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31294
diff
changeset
|
28 | /* When you ask other people for authorization */ |
|
532045052a3f
Add invite message support to Oscar.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31294
diff
changeset
|
29 | void |
|
532045052a3f
Add invite message support to Oscar.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31294
diff
changeset
|
30 | oscar_auth_sendrequest(PurpleConnection *gc, const char *bname, const char *msg) |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
31 | { |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
32 | OscarData *od; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
33 | PurpleAccount *account; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
34 | PurpleBuddy *buddy; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
35 | PurpleGroup *group; |
|
31599
532045052a3f
Add invite message support to Oscar.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31294
diff
changeset
|
36 | const char *gname; |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
37 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
38 | od = purple_connection_get_protocol_data(gc); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
39 | account = purple_connection_get_account(gc); |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34699
diff
changeset
|
40 | buddy = purple_blist_find_buddy(account, bname); |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
41 | if (buddy != NULL) |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
42 | group = purple_buddy_get_group(buddy); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
43 | else |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
44 | group = NULL; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
45 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
46 | if (group != NULL) |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
47 | { |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
48 | gname = purple_group_get_name(group); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
49 | purple_debug_info("oscar", "ssi: adding buddy %s to group %s\n", |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
50 | bname, gname); |
|
31599
532045052a3f
Add invite message support to Oscar.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31294
diff
changeset
|
51 | aim_ssi_sendauthrequest(od, bname, msg ? msg : _("Please authorize me so I can add you to my buddy list.")); |
|
31592
2b3dd7cca164
Add two hash tables to the oscar code that deals with your server stored
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
52 | if (!aim_ssi_itemlist_finditem(&od->ssi.local, gname, bname, AIM_SSI_TYPE_BUDDY)) |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
53 | { |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
54 | aim_ssi_addbuddy(od, bname, gname, NULL, purple_buddy_get_alias_only(buddy), NULL, NULL, TRUE); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
55 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
56 | /* Mobile users should always be online */ |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
57 | if (bname[0] == '+') { |
|
36545
23b59a16c808
Replaced some _prpl_ stuff with _protocol_
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
58 | purple_protocol_got_user_status(account, |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
59 | purple_buddy_get_name(buddy), |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
60 | OSCAR_STATUS_ID_AVAILABLE, NULL); |
|
36545
23b59a16c808
Replaced some _prpl_ stuff with _protocol_
Ankit Vani <a@nevitus.org>
parents:
34864
diff
changeset
|
61 | purple_protocol_got_user_status(account, |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
62 | purple_buddy_get_name(buddy), |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
63 | OSCAR_STATUS_ID_MOBILE, NULL); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
64 | } |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
65 | } |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
66 | } |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
67 | } |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
68 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
69 | static void |
|
33687
0819d40769c8
Add a message to the authorization callbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31604
diff
changeset
|
70 | oscar_auth_grant(const char *message, gpointer cbdata) |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
71 | { |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
72 | struct name_data *data = cbdata; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
73 | PurpleConnection *gc = data->gc; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
74 | OscarData *od = purple_connection_get_protocol_data(gc); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
75 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
76 | aim_ssi_sendauthreply(od, data->name, 0x01, NULL); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
77 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
78 | oscar_free_name_data(data); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
79 | } |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
80 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
81 | static void |
|
33687
0819d40769c8
Add a message to the authorization callbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31604
diff
changeset
|
82 | oscar_auth_dontgrant(const char *msg, gpointer cbdata) |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
83 | { |
|
33687
0819d40769c8
Add a message to the authorization callbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31604
diff
changeset
|
84 | struct name_data *data = cbdata; |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
85 | PurpleConnection *gc = data->gc; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
86 | OscarData *od = purple_connection_get_protocol_data(gc); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
87 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
88 | aim_ssi_sendauthreply(od, data->name, 0x00, msg ? msg : _("No reason given.")); |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
30638
diff
changeset
|
89 | |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
90 | oscar_free_name_data(data); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
91 | } |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
92 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
93 | void |
|
34864
0e292d8887de
Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents:
34728
diff
changeset
|
94 | oscar_auth_sendrequest_menu(PurpleBlistNode *node, gpointer ignored) |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
95 | { |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
96 | PurpleBuddy *buddy; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
97 | PurpleConnection *gc; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
98 | |
|
34696
6e0d13978666
Global replace to use GObject-style macros. See details.
Ankit Vani <a@nevitus.org>
parents:
33687
diff
changeset
|
99 | g_return_if_fail(PURPLE_IS_BUDDY(node)); |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
100 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
101 | buddy = (PurpleBuddy *) node; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
102 | gc = purple_account_get_connection(purple_buddy_get_account(buddy)); |
|
31599
532045052a3f
Add invite message support to Oscar.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31294
diff
changeset
|
103 | oscar_auth_sendrequest(gc, purple_buddy_get_name(buddy), NULL); |
|
30638
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
104 | } |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
105 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
106 | /* When other people ask you for authorization */ |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
107 | void |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
108 | oscar_auth_recvrequest(PurpleConnection *gc, gchar *name, gchar *nick, gchar *reason) |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
109 | { |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
110 | PurpleAccount* account = purple_connection_get_account(gc); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
111 | struct name_data *data = g_new(struct name_data, 1); |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
112 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
113 | data->gc = gc; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
114 | data->name = name; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
115 | data->nick = nick; |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
116 | |
|
2f1952f26351
Got rid of family_icq.c -> oscar.c callbacks. Now it will be possible
Ivan Komarov <ivan.komarov@pidgin.im>
parents:
diff
changeset
|
117 | purple_account_request_authorization(account, data->name, NULL, data->nick, |
|
34728
8efd73063ecf
Renamed buddy list functions to more appropriate/simler names.
Ankit Vani <a@nevitus.org>
parents:
34699
diff
changeset
|
118 | reason, purple_blist_find_buddy(account, data->name) != NULL, |
|
33687
0819d40769c8
Add a message to the authorization callbacks.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31604
diff
changeset
|
119 | oscar_auth_grant, oscar_auth_dontgrant, data); |
|
31592
2b3dd7cca164
Add two hash tables to the oscar code that deals with your server stored
Mark Doliner <markdoliner@pidgin.im>
parents:
31294
diff
changeset
|
120 | } |