r6879 - dumbhippo/trunk/imbot/src/java/com/dumbhippo/aimbot



Author: walters
Date: 2007-11-08 12:48:16 -0600 (Thu, 08 Nov 2007)
New Revision: 6879

Modified:
   dumbhippo/trunk/imbot/src/java/com/dumbhippo/aimbot/Bot.java
Log:
Fix logic error in message throttling to make it actually work.



Modified: dumbhippo/trunk/imbot/src/java/com/dumbhippo/aimbot/Bot.java
===================================================================
--- dumbhippo/trunk/imbot/src/java/com/dumbhippo/aimbot/Bot.java	2007-11-07 23:03:17 UTC (rev 6878)
+++ dumbhippo/trunk/imbot/src/java/com/dumbhippo/aimbot/Bot.java	2007-11-08 18:48:16 UTC (rev 6879)
@@ -194,9 +194,11 @@
 			long curTime = new Date().getTime();
 			if (lastConversation == null) {
 				lastConversation = new BuddyRecentConversation(curTime);
+				recentConversations.put(buddy, lastConversation);
 			} else {
 				 if ((curTime - lastConversation.endTime)/1000 > RECENT_CONVERSATION_EXPIRY_SECS) {
 					lastConversation = new BuddyRecentConversation(curTime);
+					recentConversations.put(buddy, lastConversation);					
 				 } else {
 					 lastConversation.count += 1;
 					 lastConversation.endTime = curTime;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]