diff libpurple/protocols/silc10/ops.c @ 17570:b142c090eaf7

Remove the following SILC account options, as suggested by Pekka Riikonen on devel@pidgin.im: Reject watching by other users (and not reject by default) Reject online status attribute reqs (and not reject by default) Block invites (and not block by default)
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 09 Jun 2007 17:58:26 +0000
parents ba1b50f114f6
children 941965d6fd88
line wrap: on
line diff
--- a/libpurple/protocols/silc10/ops.c	Sat Jun 09 17:33:07 2007 +0000
+++ b/libpurple/protocols/silc10/ops.c	Sat Jun 09 17:58:26 2007 +0000
@@ -1671,7 +1671,6 @@
 {
 	PurpleConnection *gc = client->application;
 	SilcPurple sg;
-	gboolean reject_watch, block_invites, block_ims;
 
 	if (gc == NULL) {
 		silc_client_close_connection(client, conn);
@@ -1690,17 +1689,9 @@
 		g_unlink(silcpurple_session_file(purple_account_get_username(sg->account)));
 
 		/* Send any UMODEs configured for account */
-		reject_watch = purple_account_get_bool(sg->account, "reject-watch", FALSE);
-		block_invites = purple_account_get_bool(sg->account, "block-invites", FALSE);
-		block_ims = purple_account_get_bool(sg->account, "block-ims", FALSE);
-		if (reject_watch || block_invites || block_ims) {
-			char m[5];
-			g_snprintf(m, sizeof(m), "+%s%s%s",
-					   reject_watch ? "w" : "",
-					   block_invites ? "I" : "",
-					   block_ims ? "P" : "");
+		if (purple_account_get_bool(sg->account, "block-ims", FALSE)) {
 			silc_client_command_call(sg->client, sg->conn, NULL,
-					"UMODE", m, NULL);
+					"UMODE", "+P", NULL);
 		}
 
 		return;