diff src/server.c @ 145:41bd1cd48571

[gaim-migrate @ 155] Modified how the "<AUTO-REPLY>" thing works. Works better now, IMHO. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 21 Apr 2000 01:25:44 +0000
parents 4e91b92f91a7
children 789c792ed14b
line wrap: on
line diff
--- a/src/server.c	Fri Apr 21 00:03:52 2000 +0000
+++ b/src/server.c	Fri Apr 21 01:25:44 2000 +0000
@@ -510,6 +510,7 @@
 	g_free(nname);
 	
         cnv = find_conversation(name);
+	if (away) away = WFLAG_AUTO;
 
 	if (awaymessage != NULL) {
 		if (!(general_options & OPT_GEN_DISCARD_WHEN_AWAY)) {
@@ -521,7 +522,7 @@
 		if (cnv != NULL) {
 			if (sound_options & OPT_SOUND_WHEN_AWAY)
 				play_sound(AWAY);
-			write_to_conv(cnv, message, WFLAG_AUTO | WFLAG_RECV);
+			write_to_conv(cnv, message, away | WFLAG_RECV);
 		}
 
 	} else {
@@ -535,7 +536,7 @@
 			if (cnv->makesound && (sound_options & OPT_SOUND_RECV))
 				play_sound(RECEIVE);
 		}
-		write_to_conv(cnv, message, WFLAG_RECV);
+		write_to_conv(cnv, message, away | WFLAG_RECV);
 	}