diff plugins/yay/yay.c @ 1554:c3afde736a8a

[gaim-migrate @ 1564] good stuff. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 10 Mar 2001 00:00:18 +0000
parents bf10d0673d34
children 1ca5f5fcd483
line wrap: on
line diff
--- a/plugins/yay/yay.c	Fri Mar 09 12:34:39 2001 +0000
+++ b/plugins/yay/yay.c	Sat Mar 10 00:00:18 2001 +0000
@@ -357,7 +357,7 @@
 static void yahoo_send_im(struct gaim_connection *gc, char *who, char *message, int away) {
 	struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data;
 
-	if (away) return;
+	if (away || !strlen(message)) return;
 
 	yahoo_send_message(yd->sess, yd->active_id, who, message);
 }
@@ -414,6 +414,7 @@
 				yahoo_away(yd->sess, YAHOO_STATUS_AVAILABLE, NULL);
 				yd->current_status = YAHOO_STATUS_AVAILABLE;
 			}
+			gc->away = NULL;
 		}
 	} else if (gc->is_idle) {
 		yahoo_away(yd->sess, YAHOO_STATUS_IDLE, NULL);