Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/oscar.c @ 27505:5048054d319a
Use the ui_info hash table instead of prefs when passing the clientstring
and distid from the UIs to the oscar prpl. I realized that using a pref
wasn't great because it's persistent, and if you switch from a UI that
sets one of those strings to a UI that doesn't hen we'll keep using the
old value.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 08 Jul 2009 20:11:07 +0000 |
parents | 4f24d5da4cb3 |
children | bff61dad9a6b bd9df4e45904 |
comparison
equal
deleted
inserted
replaced
27504:4f24d5da4cb3 | 27505:5048054d319a |
---|---|
7100 | 7100 |
7101 /* Preferences */ | 7101 /* Preferences */ |
7102 purple_prefs_add_none("/plugins/prpl/oscar"); | 7102 purple_prefs_add_none("/plugins/prpl/oscar"); |
7103 purple_prefs_add_bool("/plugins/prpl/oscar/recent_buddies", FALSE); | 7103 purple_prefs_add_bool("/plugins/prpl/oscar/recent_buddies", FALSE); |
7104 | 7104 |
7105 /* | |
7106 * These two preferences will normally not be changed. UIs can optionally | |
7107 * use them to override these two version fields which are sent to the | |
7108 * server when logging in. AOL requested this change to allow clients to | |
7109 * use custom values. | |
7110 * | |
7111 * TODO: It would be more appropriate for UIs to put these in the hash | |
7112 * table returned by purple_core_get_ui_info(). | |
7113 */ | |
7114 purple_prefs_add_string("/plugins/prpl/oscar/clientstring", NULL); | |
7115 purple_prefs_add_int("/plugins/prpl/oscar/distid", -1); | |
7116 | |
7117 purple_prefs_remove("/plugins/prpl/oscar/show_idle"); | 7105 purple_prefs_remove("/plugins/prpl/oscar/show_idle"); |
7118 purple_prefs_remove("/plugins/prpl/oscar/always_use_rv_proxy"); | 7106 purple_prefs_remove("/plugins/prpl/oscar/always_use_rv_proxy"); |
7119 | 7107 |
7120 /* protocol handler */ | 7108 /* protocol handler */ |
7121 /* TODO: figure out a good instance to use here */ | 7109 /* TODO: figure out a good instance to use here */ |