diff libpurple/plugins/statenotify.c @ 19567:b99a158ea85e

disapproval of revision 'c672802b647f1230fbd9b0edf383fb3d558cf719'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 02 Sep 2007 00:03:43 +0000
parents 57d350900136
children
line wrap: on
line diff
--- a/libpurple/plugins/statenotify.c	Sat Sep 01 23:50:22 2007 +0000
+++ b/libpurple/plugins/statenotify.c	Sun Sep 02 00:03:43 2007 +0000
@@ -46,19 +46,10 @@
 	old_available = purple_status_is_available(old_status);
 
 	if (purple_prefs_get_bool("/plugins/core/statenotify/notify_away")) {
-		char *message = NULL;
-		const char *msgstatus = purple_status_get_attr_string(status, "message");
-		msgstatus = msgstatus ? msgstatus : "";
 		if (available && !old_available)
-			message = g_strdup_printf("%s%s%s", _("%s is no longer away"), msgstatus[0] ? ": " : ".", msgstatus);
+			write_status(buddy, _("%s is no longer away."));
 		else if (!available && old_available)
-			message = g_strdup_printf("%s%s%s", ("%s has gone away"), msgstatus[0] ? ": " : ".", msgstatus);
-		else if (msgstatus[0])
-			message = g_strdup_printf("%s %s", _("%s has changed status message to:"), msgstatus);
-		else
-			message = g_strdup(_("%s has removed his status message."));
-		write_status(buddy, message);
-		g_free(message);
+			write_status(buddy, _("%s has gone away."));
 	}
 }