diff src/protocols/msn/notification.c @ 10057:5d2a08d82e7a

[gaim-migrate @ 11022] (20:52:20) nosnilmot: I also have a patch that makes MSN status stuff better (21:00:20) LSchiere: and the other? (21:00:57) nosnilmot: "bleh, I made it compile and work earlier, this might work a bit better and mean something now that I can test it" committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 21 Sep 2004 01:00:19 +0000
parents 86a6d78b070b
children 7ff9b8b22e7d
line wrap: on
line diff
--- a/src/protocols/msn/notification.c	Tue Sep 21 00:58:41 2004 +0000
+++ b/src/protocols/msn/notification.c	Tue Sep 21 01:00:19 2004 +0000
@@ -495,11 +495,6 @@
 
 	if (!g_ascii_strcasecmp(state, "BSY"))
 		status = "busy";
-	else if (!g_ascii_strcasecmp(state, "IDL"))
-	{
-		/* XXX - Do something about idle time? */
-		status = "idle";
-	}
 	else if (!g_ascii_strcasecmp(state, "BRB"))
 		status = "brb";
 	else if (!g_ascii_strcasecmp(state, "AWY"))
@@ -512,6 +507,11 @@
 		status = "available";
 
 	gaim_prpl_got_user_status(account, passport, status, NULL);
+
+	if (!g_ascii_strcasecmp(state, "IDL"))
+		gaim_prpl_got_user_idle(account, passport, TRUE, -1);
+	else
+		gaim_prpl_got_user_idle(account, passport, FALSE, 0);
 }
 
 static void
@@ -573,11 +573,6 @@
 
 	if (!g_ascii_strcasecmp(state, "BSY"))
 		status = "busy";
-	else if (!g_ascii_strcasecmp(state, "IDL"))
-	{
-		/* XXX - Do something about idle time? */
-		status = "idle";
-	}
 	else if (!g_ascii_strcasecmp(state, "BRB"))
 		status = "brb";
 	else if (!g_ascii_strcasecmp(state, "AWY"))
@@ -590,6 +585,11 @@
 		status = "available";
 
 	gaim_prpl_got_user_status(account, passport, status, NULL);
+
+	if (!g_ascii_strcasecmp(state, "IDL"))
+		gaim_prpl_got_user_idle(account, passport, TRUE, -1);
+	else
+		gaim_prpl_got_user_idle(account, passport, FALSE, 0);
 }
 
 static void