changeset 12082:3b536c791a64

[gaim-migrate @ 14379] Don't attempt to auto-reply if our current status does not have a message set. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 14 Nov 2005 07:31:44 +0000
parents 5a08737f76c6
children a825137820c7
files src/server.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/server.c	Mon Nov 14 07:26:01 2005 +0000
+++ b/src/server.c	Mon Nov 14 07:31:44 2005 +0000
@@ -681,6 +681,9 @@
 		away_msg = gaim_value_get_string(
 			gaim_status_get_attr_value(status, "message"));
 
+		if ((away_msg == NULL) || (*away_msg == '\0'))
+			return;
+
 		/* apply default fonts and colors */
 		/* TODO: Do we even need this? */
 		tmpmsg = stylize(away_msg, MSG_LEN);