adium 2120:e98c5ea528e3: Don't allow an "Offline" status text to...

commits at adium.im commits at adium.im
Thu May 7 21:22:33 UTC 2009


details:	http://hg.adium.im/adium/rev/e98c5ea528e3
revision:	2120:e98c5ea528e3
author:		Zachary West <zacw at adium.im>
date:		Thu May 07 17:22:26 2009 -0400

Don't allow an "Offline" status text to be shown for a contact.

diffstat:

 Plugins/Purple Service/CBPurpleAccount.m |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r a3f57ee18622 -r e98c5ea528e3 Plugins/Purple Service/CBPurpleAccount.m
--- a/Plugins/Purple Service/CBPurpleAccount.m	Thu May 07 16:16:04 2009 -0400
+++ b/Plugins/Purple Service/CBPurpleAccount.m	Thu May 07 17:22:26 2009 -0400
@@ -264,6 +264,11 @@
 		
 		if (prpl_info && prpl_info->status_text) {
 			message = (prpl_info->status_text)(buddy);
+			
+			// Don't display "Offline" as a status message.
+			if (message && !strcmp(message, _("Offline"))) {
+				message = NULL;
+			}
 		}
 		
 		// These are HTML-stripped messages.




More information about the commits mailing list