openbsd-ports/net/pidgin/patches/patch-libpurple_protocols_silc_silc_c
brad 8bd6e8e1ac Update to Pidgin 2.5.0.
"no worse than before" ckuethe@
2008-08-21 05:59:01 +00:00

72 lines
1.9 KiB
Plaintext

$OpenBSD: patch-libpurple_protocols_silc_silc_c,v 1.3 2008/08/21 05:59:01 brad Exp $
--- libpurple/protocols/silc/silc.c.orig Wed Aug 20 00:48:35 2008
+++ libpurple/protocols/silc/silc.c Wed Aug 20 00:56:04 2008
@@ -671,31 +671,12 @@ silcpurple_close(PurpleConnection *gc)
SilcPurpleTask task;
#endif /* __SILC_TOOLKIT_VERSION */
GHashTable *ui_info;
- const char *ui_name = NULL, *ui_website = NULL;
- char *quit_msg;
g_return_if_fail(sg != NULL);
- ui_info = purple_core_get_ui_info();
-
- if(ui_info) {
- ui_name = g_hash_table_lookup(ui_info, "name");
- ui_website = g_hash_table_lookup(ui_info, "website");
- }
-
- if(!ui_name || !ui_website) {
- ui_name = "Pidgin";
- ui_website = PURPLE_WEBSITE;
- }
- quit_msg = g_strdup_printf(_("Download %s: %s"),
- ui_name, ui_website);
-
/* Send QUIT */
silc_client_command_call(sg->client, sg->conn, NULL,
- "QUIT", quit_msg,
- NULL);
- g_free(quit_msg);
-
+ "QUIT", NULL);
if (sg->conn)
silc_client_close_connection(sg->client, sg->conn);
@@ -1835,9 +1816,6 @@ static PurpleCmdRet silcpurple_cmd_quit(PurpleConversa
{
PurpleConnection *gc;
SilcPurple sg;
- GHashTable *ui_info;
- const char *ui_name = NULL, *ui_website = NULL;
- char *quit_msg;
gc = purple_conversation_get_gc(conv);
@@ -1849,23 +1827,8 @@ static PurpleCmdRet silcpurple_cmd_quit(PurpleConversa
if (sg == NULL)
return PURPLE_CMD_RET_FAILED;
- ui_info = purple_core_get_ui_info();
-
- if(ui_info) {
- ui_name = g_hash_table_lookup(ui_info, "name");
- ui_website = g_hash_table_lookup(ui_info, "website");
- }
-
- if(!ui_name || !ui_website) {
- ui_name = "Pidgin";
- ui_website = PURPLE_WEBSITE;
- }
- quit_msg = g_strdup_printf(_("Download %s: %s"),
- ui_name, ui_website);
-
silc_client_command_call(sg->client, sg->conn, NULL,
- "QUIT", (args && args[0]) ? args[0] : quit_msg, NULL);
- g_free(quit_msg);
+ "QUIT", NULL);
return PURPLE_CMD_RET_OK;
}