Sat, 29 Aug 2009 00:45:37 +0000
propagate from branch 'im.pidgin.pidgin' (head 32da7ab6d1092d199f3c54e43644fb6303f82bd2)
to branch 'im.pidgin.soc.2008.masterpassword' (head e0ce5fb11bdba2ac134e9675ce4dffd3f43e0418)
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
1 | /* |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
2 | * purple |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
3 | * |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
4 | * Purple is the legal property of its developers, whose names are too numerous |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
6 | * source distribution. |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
7 | * |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
8 | * This program is free software; you can redistribute it and/or modify |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
11 | * (at your option) any later version. |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
12 | * |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
16 | * GNU General Public License for more details. |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
17 | * |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
21 | * |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
22 | */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
23 | |
|
27559
3007dde24778
Add header includes. I still have not yet tested building this.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27557
diff
changeset
|
24 | #include "internal.h" |
|
3007dde24778
Add header includes. I still have not yet tested building this.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27557
diff
changeset
|
25 | |
|
3007dde24778
Add header includes. I still have not yet tested building this.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27557
diff
changeset
|
26 | #include <account.h> |
|
27560
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
27 | #include <core.h> |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
28 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
29 | #include "libymsg.h" |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
30 | #include "yahoochat.h" |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
31 | #include "yahoo_aliases.h" |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
32 | #include "yahoo_doodle.h" |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
33 | #include "yahoo_filexfer.h" |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
34 | #include "yahoo_picture.h" |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
35 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
36 | static PurplePlugin *my_protocol = NULL; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
37 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
38 | static void yahoo_register_commands(void) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
39 | { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
40 | purple_cmd_register("join", "s", PURPLE_CMD_P_PRPL, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
41 | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
42 | PURPLE_CMD_FLAG_PRPL_ONLY, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
43 | "prpl-yahoo", yahoopurple_cmd_chat_join, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
44 | _("join <room>: Join a chat room on the Yahoo network"), NULL); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
45 | purple_cmd_register("list", "", PURPLE_CMD_P_PRPL, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
46 | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_CHAT | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
47 | PURPLE_CMD_FLAG_PRPL_ONLY, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
48 | "prpl-yahoo", yahoopurple_cmd_chat_list, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
49 | _("list: List rooms on the Yahoo network"), NULL); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
50 | purple_cmd_register("buzz", "", PURPLE_CMD_P_PRPL, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
51 | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_PRPL_ONLY, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
52 | "prpl-yahoo", yahoopurple_cmd_buzz, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
53 | _("buzz: Buzz a user to get their attention"), NULL); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
54 | purple_cmd_register("doodle", "", PURPLE_CMD_P_PRPL, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
55 | PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_PRPL_ONLY, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
56 | "prpl-yahoo", yahoo_doodle_purple_cmd_start, |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
57 | _("doodle: Request user to start a Doodle session"), NULL); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
58 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
59 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
60 | static PurpleAccount *find_acct(const char *prpl, const char *acct_id) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
61 | { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
62 | PurpleAccount *acct = NULL; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
63 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
64 | /* If we have a specific acct, use it */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
65 | if (acct_id) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
66 | acct = purple_accounts_find(acct_id, prpl); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
67 | if (acct && !purple_account_is_connected(acct)) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
68 | acct = NULL; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
69 | } else { /* Otherwise find an active account for the protocol */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
70 | GList *l = purple_accounts_get_all(); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
71 | while (l) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
72 | if (!strcmp(prpl, purple_account_get_protocol_id(l->data)) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
73 | && purple_account_is_connected(l->data)) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
74 | acct = l->data; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
75 | break; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
76 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
77 | l = l->next; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
78 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
79 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
80 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
81 | return acct; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
82 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
83 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
84 | /* This may not be the best way to do this, but we find the first key w/o a value |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
85 | * and assume it is the buddy name */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
86 | static void yahoo_find_uri_novalue_param(gpointer key, gpointer value, gpointer user_data) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
87 | { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
88 | char **retval = user_data; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
89 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
90 | if (value == NULL && *retval == NULL) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
91 | *retval = key; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
92 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
93 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
94 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
95 | static gboolean yahoo_uri_handler(const char *proto, const char *cmd, GHashTable *params) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
96 | { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
97 | char *acct_id = g_hash_table_lookup(params, "account"); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
98 | PurpleAccount *acct; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
99 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
100 | if (g_ascii_strcasecmp(proto, "ymsgr")) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
101 | return FALSE; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
102 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
103 | acct = find_acct(purple_plugin_get_id(my_protocol), acct_id); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
104 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
105 | if (!acct) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
106 | return FALSE; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
107 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
108 | /* ymsgr:SendIM?screename&m=The+Message */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
109 | if (!g_ascii_strcasecmp(cmd, "SendIM")) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
110 | char *sname = NULL; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
111 | g_hash_table_foreach(params, yahoo_find_uri_novalue_param, &sname); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
112 | if (sname) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
113 | char *message = g_hash_table_lookup(params, "m"); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
114 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
115 | PurpleConversation *conv = purple_find_conversation_with_account( |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
116 | PURPLE_CONV_TYPE_IM, sname, acct); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
117 | if (conv == NULL) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
118 | conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, acct, sname); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
119 | purple_conversation_present(conv); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
120 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
121 | if (message) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
122 | /* Spaces are encoded as '+' */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
123 | g_strdelimit(message, "+", ' '); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
124 | purple_conv_send_confirm(conv, message); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
125 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
126 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
127 | /* else |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
128 | **If pidgindialogs_im() was in the core, we could use it here. |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
129 | * It is all purple_request_* based, but I'm not sure it really belongs in the core |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
130 | pidgindialogs_im(); */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
131 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
132 | return TRUE; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
133 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
134 | /* ymsgr:Chat?roomname */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
135 | else if (!g_ascii_strcasecmp(cmd, "Chat")) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
136 | char *rname = NULL; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
137 | g_hash_table_foreach(params, yahoo_find_uri_novalue_param, &rname); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
138 | if (rname) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
139 | /* This is somewhat hacky, but the params aren't useful after this command */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
140 | g_hash_table_insert(params, g_strdup("room"), g_strdup(rname)); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
141 | g_hash_table_insert(params, g_strdup("type"), g_strdup("Chat")); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
142 | serv_join_chat(purple_account_get_connection(acct), params); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
143 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
144 | /* else |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
145 | ** Same as above (except that this would have to be re-written using purple_request_*) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
146 | pidgin_blist_joinchat_show(); */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
147 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
148 | return TRUE; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
149 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
150 | /* ymsgr:AddFriend?name */ |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
151 | else if (!g_ascii_strcasecmp(cmd, "AddFriend")) { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
152 | char *name = NULL; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
153 | g_hash_table_foreach(params, yahoo_find_uri_novalue_param, &name); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
154 | purple_blist_request_add_buddy(acct, name, NULL, NULL); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
155 | return TRUE; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
156 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
157 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
158 | return FALSE; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
159 | } |
|
27559
3007dde24778
Add header includes. I still have not yet tested building this.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27557
diff
changeset
|
160 | |
|
27557
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
161 | static GHashTable * |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
162 | yahoo_get_account_text_table(PurpleAccount *account) |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
163 | { |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
164 | GHashTable *table; |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
165 | table = g_hash_table_new(g_str_hash, g_str_equal); |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
166 | g_hash_table_insert(table, "login_label", (gpointer)_("Yahoo ID...")); |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
167 | return table; |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
168 | } |
|
08a8cbc0a0ec
have a separate hash table function for each prpl.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27556
diff
changeset
|
169 | |
|
27560
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
170 | static gboolean yahoo_unload_plugin(PurplePlugin *plugin) |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
171 | { |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
172 | yahoo_dest_colorht(); |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
173 | |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
174 | return TRUE; |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
175 | } |
|
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
176 | |
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
177 | static PurpleWhiteboardPrplOps yahoo_whiteboard_prpl_ops = |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
178 | { |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
179 | yahoo_doodle_start, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
180 | yahoo_doodle_end, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
181 | yahoo_doodle_get_dimensions, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
182 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
183 | yahoo_doodle_get_brush, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
184 | yahoo_doodle_set_brush, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
185 | yahoo_doodle_send_draw_list, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
186 | yahoo_doodle_clear, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
187 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
188 | /* padding */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
189 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
190 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
191 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
192 | NULL |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
193 | }; |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
194 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
195 | static PurplePluginProtocolInfo prpl_info = |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
196 | { |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
197 | OPT_PROTO_MAIL_CHECK | OPT_PROTO_CHAT_TOPIC, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
198 | NULL, /* user_splits */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
199 | NULL, /* protocol_options */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
200 | {"png,gif,jpeg", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND}, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
201 | yahoo_list_icon, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
202 | yahoo_list_emblem, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
203 | yahoo_status_text, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
204 | yahoo_tooltip_text, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
205 | yahoo_status_types, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
206 | yahoo_blist_node_menu, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
207 | yahoo_c_info, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
208 | yahoo_c_info_defaults, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
209 | yahoo_login, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
210 | yahoo_close, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
211 | yahoo_send_im, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
212 | NULL, /* set info */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
213 | yahoo_send_typing, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
214 | yahoo_get_info, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
215 | yahoo_set_status, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
216 | yahoo_set_idle, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
217 | NULL, /* change_passwd*/ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
218 | yahoo_add_buddy, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
219 | NULL, /* add_buddies */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
220 | yahoo_remove_buddy, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
221 | NULL, /* remove_buddies */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
222 | NULL, /* add_permit */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
223 | yahoo_add_deny, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
224 | NULL, /* rem_permit */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
225 | yahoo_rem_deny, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
226 | yahoo_set_permit_deny, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
227 | yahoo_c_join, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
228 | NULL, /* reject chat invite */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
229 | yahoo_get_chat_name, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
230 | yahoo_c_invite, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
231 | yahoo_c_leave, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
232 | NULL, /* chat whisper */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
233 | yahoo_c_send, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
234 | yahoo_keepalive, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
235 | NULL, /* register_user */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
236 | NULL, /* get_cb_info */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
237 | NULL, /* get_cb_away */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
238 | yahoo_update_alias, /* alias_buddy */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
239 | yahoo_change_buddys_group, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
240 | yahoo_rename_group, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
241 | NULL, /* buddy_free */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
242 | NULL, /* convo_closed */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
243 | purple_normalize_nocase, /* normalize */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
244 | yahoo_set_buddy_icon, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
245 | NULL, /* void (*remove_group)(PurpleConnection *gc, const char *group);*/ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
246 | NULL, /* char *(*get_cb_real_name)(PurpleConnection *gc, int id, const char *who); */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
247 | NULL, /* set_chat_topic */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
248 | NULL, /* find_blist_chat */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
249 | yahoo_roomlist_get_list, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
250 | yahoo_roomlist_cancel, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
251 | yahoo_roomlist_expand_category, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
252 | NULL, /* can_receive_file */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
253 | yahoo_send_file, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
254 | yahoo_new_xfer, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
255 | yahoo_offline_message, /* offline_message */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
256 | &yahoo_whiteboard_prpl_ops, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
257 | NULL, /* send_raw */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
258 | NULL, /* roomlist_room_serialize */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
259 | NULL, /* unregister_user */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
260 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
261 | yahoo_send_attention, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
262 | yahoo_attention_types, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
263 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
264 | sizeof(PurplePluginProtocolInfo), /* struct_size */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
265 | yahoo_get_account_text_table, /* get_account_text_table */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
266 | NULL, /* initiate_media */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
267 | NULL /* can_do_media */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
268 | }; |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
269 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
270 | static PurplePluginInfo info = |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
271 | { |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
272 | PURPLE_PLUGIN_MAGIC, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
273 | PURPLE_MAJOR_VERSION, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
274 | PURPLE_MINOR_VERSION, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
275 | PURPLE_PLUGIN_PROTOCOL, /**< type */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
276 | NULL, /**< ui_requirement */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
277 | 0, /**< flags */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
278 | NULL, /**< dependencies */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
279 | PURPLE_PRIORITY_DEFAULT, /**< priority */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
280 | "prpl-yahoo", /**< id */ |
|
28198
e6aafeb73c54
Fix Yahoo emoticon sets and make Yahoo-Japan consistent.
Paul Aurich <darkrain42@pidgin.im>
parents:
27644
diff
changeset
|
281 | "Yahoo", /**< name */ |
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
282 | DISPLAY_VERSION, /**< version */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
283 | /** summary */ |
|
27644
b03d1efa62e2
This looked wrong to me.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27560
diff
changeset
|
284 | N_("Yahoo! Protocol Plugin"), |
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
285 | /** description */ |
|
27644
b03d1efa62e2
This looked wrong to me.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27560
diff
changeset
|
286 | N_("Yahoo! Protocol Plugin"), |
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
287 | NULL, /**< author */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
288 | PURPLE_WEBSITE, /**< homepage */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
289 | NULL, /**< load */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
290 | yahoo_unload_plugin, /**< unload */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
291 | NULL, /**< destroy */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
292 | NULL, /**< ui_info */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
293 | &prpl_info, /**< extra_info */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
294 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
295 | yahoo_actions, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
296 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
297 | /* padding */ |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
298 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
299 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
300 | NULL, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
301 | NULL |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
302 | }; |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
303 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
304 | static void |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
305 | init_plugin(PurplePlugin *plugin) |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
306 | { |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
307 | PurpleAccountOption *option; |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
308 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
309 | option = purple_account_option_string_new(_("Pager server"), "server", YAHOO_PAGER_HOST); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
310 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
311 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
312 | option = purple_account_option_int_new(_("Pager port"), "port", YAHOO_PAGER_PORT); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
313 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
314 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
315 | option = purple_account_option_string_new(_("File transfer server"), "xfer_host", YAHOO_XFER_HOST); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
316 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
317 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
318 | option = purple_account_option_int_new(_("File transfer port"), "xfer_port", YAHOO_XFER_PORT); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
319 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
320 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
321 | option = purple_account_option_string_new(_("Chat room locale"), "room_list_locale", YAHOO_ROOMLIST_LOCALE); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
322 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
323 | |
|
28326
6f1bc0dcabdc
Add a boolean account option (defaulting to off) to control whether to use
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28198
diff
changeset
|
324 | option = purple_account_option_string_new(_("Encoding"), "local_charset", "UTF-8"); |
|
6f1bc0dcabdc
Add a boolean account option (defaulting to off) to control whether to use
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28198
diff
changeset
|
325 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
6f1bc0dcabdc
Add a boolean account option (defaulting to off) to control whether to use
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28198
diff
changeset
|
326 | |
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
327 | option = purple_account_option_bool_new(_("Ignore conference and chatroom invitations"), "ignore_invites", FALSE); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
328 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
329 | |
|
28326
6f1bc0dcabdc
Add a boolean account option (defaulting to off) to control whether to use
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
28198
diff
changeset
|
330 | option = purple_account_option_bool_new(_("Use account proxy for SSL connections"), "proxy_ssl", FALSE); |
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
331 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
332 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
333 | #if 0 |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
334 | option = purple_account_option_string_new(_("Chat room list URL"), "room_list", YAHOO_ROOMLIST_URL); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
335 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
336 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
337 | option = purple_account_option_string_new(_("Yahoo Chat server"), "ycht-server", YAHOO_YCHT_HOST); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
338 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
339 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
340 | option = purple_account_option_int_new(_("Yahoo Chat port"), "ycht-port", YAHOO_YCHT_PORT); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
341 | prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
342 | #endif |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
343 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
344 | my_protocol = plugin; |
|
27560
95e7692b99eb
Moved functions around and made some no longer static. All the functions
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
27559
diff
changeset
|
345 | yahoo_register_commands(); |
|
27556
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
346 | yahoo_init_colorht(); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
347 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
348 | purple_signal_connect(purple_get_core(), "uri-handler", plugin, |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
349 | PURPLE_CALLBACK(yahoo_uri_handler), NULL); |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
350 | } |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
351 | |
|
3daffa5f82dd
Very rudimentary start to separate prpls. Removed URI handler from the
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
diff
changeset
|
352 | PURPLE_INIT_PLUGIN(yahoo, init_plugin, info); |