diff src/server.c @ 592:7c75d69a1129

[gaim-migrate @ 602] this really cool guy sent a patch to convert %n, %d and %t to things in away messages. i just wish i could remember his name. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 03 Aug 2000 05:35:13 +0000
parents f03f041c1aa9
children 874ed877c854
line wrap: on
line diff
--- a/src/server.c	Thu Aug 03 02:05:26 2000 +0000
+++ b/src/server.c	Thu Aug 03 05:35:13 2000 +0000
@@ -733,13 +733,13 @@
 		strcpy(tmpmsg, awaymessage->message);
 		escape_text(tmpmsg);
 		escape_message(tmpmsg);
-                serv_send_im(name, tmpmsg, 1);
+                serv_send_im(name, away_subs(tmpmsg, name), 1);
 
                 if (is_idle == -1)
 			is_idle = 1;
 		
                 if (cnv != NULL)
-			write_to_conv(cnv, awaymessage->message, WFLAG_SEND | WFLAG_AUTO, NULL);
+			write_to_conv(cnv, away_subs(awaymessage->message, name), WFLAG_SEND | WFLAG_AUTO, NULL);
         }
 }