changeset 9295:3313eab5033d

[gaim-migrate @ 10098] I really thought I had removed all those gaim_blist_save's Sorry about that committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 15 Jun 2004 21:59:04 +0000
parents 01dee77a079d
children 7b08b98d8278
files src/protocols/gg/gg.c src/protocols/oscar/oscar.c src/protocols/silc/buddy.c src/protocols/silc/chat.c src/server.c
diffstat 5 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Tue Jun 15 11:59:53 2004 +0000
+++ b/src/protocols/gg/gg.c	Tue Jun 15 21:59:04 2004 +0000
@@ -1,6 +1,6 @@
 /*
  * gaim - Gadu-Gadu Protocol Plugin
- * $Id: gg.c 10088 2004-06-15 02:37:27Z thekingant $
+ * $Id: gg.c 10098 2004-06-15 21:59:04Z thekingant $
  *
  * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
  *
@@ -1005,8 +1005,7 @@
 				gaim_blist_add_group(g, NULL);
 			}
 			b = gaim_buddy_new(gc->account, name, strlen(show) ? show : NULL);
-			gaim_blist_add_buddy(b,NULL,g,NULL);
-			gaim_blist_save();
+			gaim_blist_add_buddy(b, NULL, g, NULL);
 			g_free(group);
 		}
 		g_free(show);
--- a/src/protocols/oscar/oscar.c	Tue Jun 15 11:59:53 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Jun 15 21:59:04 2004 +0000
@@ -2726,6 +2726,7 @@
 	if (info->present & AIM_USERINFO_PRESENT_IDLE) {
 		time(&time_idle);
 		time_idle -= info->idletime*60;
+		/* time_idle should be the seconds since epoch at which the user became idle */
 	}
 
 	if (info->present & AIM_USERINFO_PRESENT_ONLINESINCE)
--- a/src/protocols/silc/buddy.c	Tue Jun 15 11:59:53 2004 +0000
+++ b/src/protocols/silc/buddy.c	Tue Jun 15 21:59:04 2004 +0000
@@ -961,7 +961,6 @@
 		   "%s" G_DIR_SEPARATOR_S "clientkeys" G_DIR_SEPARATOR_S "clientkey_%s.pub",
 		   silcgaim_silcdir(), fingerprint);
 	gaim_blist_node_set_string((GaimBlistNode *)b, "public-key", filename);
-	gaim_blist_save();
 
 	/* Update online status on the buddy list */
 	gaim_blist_update_buddy_presence(b, GAIM_BUDDY_ONLINE);
--- a/src/protocols/silc/chat.c	Tue Jun 15 11:59:53 2004 +0000
+++ b/src/protocols/silc/chat.c	Tue Jun 15 21:59:04 2004 +0000
@@ -340,12 +340,10 @@
 		silc_client_command_call(sg->client, sg->conn, NULL, "CMODE",
 					 sgc->channel->channel_name, "+a", val, NULL);
 		gaim_blist_node_set_string((GaimBlistNode *)sgc->c, "passphrase", val);
-		gaim_blist_save();
 	} else if (set == 0) {
 		silc_client_command_call(sg->client, sg->conn, NULL, "CMODE",
 					 sgc->channel->channel_name, "-a", NULL);
 		gaim_blist_node_remove_setting((GaimBlistNode *)sgc->c, "passphrase");
-		gaim_blist_save();
 	}
 
 	silc_buffer_free(sgc->pubkeys);
@@ -516,7 +514,6 @@
 
 	/* Associate to a real channel */
 	gaim_blist_node_set_string((GaimBlistNode *)cn, "parentch", p->channel);
-	gaim_blist_save();
 
 	/* Join the group */
 	silcgaim_chat_join(sg->gc, comp);
--- a/src/server.c	Tue Jun 15 11:59:53 2004 +0000
+++ b/src/server.c	Tue Jun 15 21:59:04 2004 +0000
@@ -1127,6 +1127,10 @@
 	}
 }
 
+/*
+ * @param idle The time at which the buddy became idle, in seconds
+ *             since the epoch.
+ */
 void serv_got_update(GaimConnection *gc, const char *name, int loggedin,
 					 int evil, time_t signon, time_t idle, int type)
 {