diff options
author | Gary Kramlich <grim@reaperworld.com> | 2022-11-18 00:56:22 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2022-11-18 00:56:22 -0600 |
commit | 6b2ccc99e155ab3dba1febddf993d94cd60c6a41 (patch) | |
tree | 0ad66cd5f7aaa35a97e43a09464959b4d40eec71 /finch | |
parent | 2211a7fe3e5b4eb445ae78e7b9d72932e354d460 (diff) | |
download | pidgin-6b2ccc99e155ab3dba1febddf993d94cd60c6a41.tar.gz |
Inline purple_serv_get_info and purple_serv_set_info
Testing Done:
Compiled
Reviewed at https://reviews.imfreedom.org/r/2071/
Diffstat (limited to 'finch')
-rw-r--r-- | finch/gntblist.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/finch/gntblist.c b/finch/gntblist.c index e6b6c0f300..488f34d0e3 100644 --- a/finch/gntblist.c +++ b/finch/gntblist.c @@ -1105,13 +1105,24 @@ create_group_menu(GntMenu *menu, PurpleGroup *group) gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name) { - PurpleNotifyUserInfo *info = purple_notify_user_info_new(); + PurpleProtocol *protocol = NULL; + PurpleNotifyUserInfo *info = NULL; gpointer uihandle; + + protocol = purple_connection_get_protocol(conn); + + if(!PURPLE_IS_PROTOCOL_SERVER(protocol)) { + return; + } + + purple_protocol_server_get_info(PURPLE_PROTOCOL_SERVER(protocol), conn, + name); + + info = purple_notify_user_info_new(); purple_notify_user_info_add_pair_plaintext(info, _("Information"), _("Retrieving...")); uihandle = purple_notify_userinfo(conn, name, info, NULL, NULL); purple_notify_user_info_destroy(info); - purple_serv_get_info(conn, name); return uihandle; } |