diff plugins/yay/yay.c @ 1496:d33bf6548543

[gaim-migrate @ 1506] hrm. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 22 Feb 2001 00:42:55 +0000
parents ff023d798372
children de0b946e86a4
line wrap: on
line diff
--- a/plugins/yay/yay.c	Wed Feb 21 19:22:50 2001 +0000
+++ b/plugins/yay/yay.c	Thu Feb 22 00:42:55 2001 +0000
@@ -87,18 +87,17 @@
 
 		b = find_buddy(gc, rec->id);
 		if (!b) continue;
-		time(&tmptime);
-		if (b->signon == 0) b->signon = tmptime;
 		if (!online)
 			serv_got_update(gc, b->name, 0, 0, 0, 0, 0, 0);
 		else {
 			if (rec->status == YAHOO_STATUS_AVAILABLE)
-				serv_got_update(gc, b->name, 1, 0, b->signon, 0, UC_NORMAL, 0);
-			else if (rec->status == YAHOO_STATUS_IDLE)
-				serv_got_update(gc, b->name, 1, 0, b->signon, tmptime - 600,
+				serv_got_update(gc, b->name, 1, 0, 0, 0, UC_NORMAL, 0);
+			else if (rec->status == YAHOO_STATUS_IDLE) {
+				time(&tmptime);
+				serv_got_update(gc, b->name, 1, 0, 0, tmptime - 600,
 						(rec->status << 5) | UC_NORMAL, 0);
-			else
-				serv_got_update(gc, b->name, 1, 0, b->signon, 0,
+			} else
+				serv_got_update(gc, b->name, 1, 0, 0, 0,
 						(rec->status << 5) | UC_UNAVAILABLE, 0);
 			if (rec->status == YAHOO_STATUS_CUSTOM) {
 				gpointer val = g_hash_table_lookup(yd->hash, b->name);