comparison src/server.c @ 765:bf31bf916f53

[gaim-migrate @ 775] no, if the away message gets modified, it'll be modified many many times. you won't notice it until you run out of space committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 25 Aug 2000 05:04:41 +0000
parents a566fc987db9
children 72e556f6b99d
comparison
equal deleted inserted replaced
764:a566fc987db9 765:bf31bf916f53
702 702
703 703
704 704
705 if (awaymessage != NULL) { 705 if (awaymessage != NULL) {
706 time_t t; 706 time_t t;
707 char tmpmsg[BUF_LEN]; 707 char *tmpmsg;
708 708
709 time(&t); 709 time(&t);
710 710
711 711
712 if ((cnv == NULL) || (t - cnv->sent_away) < 120) 712 if ((cnv == NULL) || (t - cnv->sent_away) < 120)
716 716
717 if (is_idle) 717 if (is_idle)
718 is_idle = -1; 718 is_idle = -1;
719 719
720 /* apply default fonts and colors */ 720 /* apply default fonts and colors */
721 stylize(awaymessage->message, MSG_LEN); 721 tmpmsg = stylize(awaymessage->message, MSG_LEN);
722 722
723 strcpy(tmpmsg, awaymessage->message);
724 escape_text(tmpmsg); 723 escape_text(tmpmsg);
725 escape_message(tmpmsg); 724 escape_message(tmpmsg);
726 serv_send_im(name, away_subs(tmpmsg, name), 1); 725 serv_send_im(name, away_subs(tmpmsg, name), 1);
727 726
728 if (is_idle == -1) 727 if (is_idle == -1)
729 is_idle = 1; 728 is_idle = 1;
730 729
731 if (cnv != NULL) 730 if (cnv != NULL)
732 write_to_conv(cnv, away_subs(awaymessage->message, name), WFLAG_SEND | WFLAG_AUTO, NULL); 731 write_to_conv(cnv, away_subs(tmpmsg, name), WFLAG_SEND | WFLAG_AUTO, NULL);
732 g_free(tmpmsg);
733 } 733 }
734 } 734 }
735 735
736 736
737 737