src/oscar.c

changeset 249
14b7e4f943ff
parent 248
81f75c658111
child 250
90097afb415f
--- a/src/oscar.c	Sun May 21 11:58:18 2000 +0000
+++ b/src/oscar.c	Mon May 22 01:18:32 2000 +0000
@@ -511,6 +511,7 @@
 			 struct command_rx_struct *command, ...) {
 	struct aim_userinfo_s *info;
 	char *prof_enc = NULL, *prof = NULL;
+	u_short infotype;
 	char buf[BUF_LONG];
 	va_list ap;
 
@@ -518,8 +519,14 @@
 	info = va_arg(ap, struct aim_userinfo_s *);
 	prof_enc = va_arg(ap, char *);
 	prof = va_arg(ap, char *);
+	infotype = va_arg(ap, u_short);
 	va_end(ap);
 
+	if (prof == NULL || !strlen(prof)) {
+		do_error_dialog("User has no away message.", "Gaim - Away Msg");
+		return 1;
+	}
+
 	snprintf(buf, sizeof buf, "Username : <B>%s</B>\n<BR>"
 				  "Warning Level : <B>%d %%</B>\n<BR>"
 				  "Online Since : <B>%s</B><BR>"

mercurial