comparison src/toc.c @ 1404:96e93119268d

[gaim-migrate @ 1414] argh committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 13 Jan 2001 08:49:15 +0000
parents bf041349b11e
children 47413c49bbee
comparison
equal deleted inserted replaced
1403:c0aa7fdc0a93 1404:96e93119268d
44 #include "pixmaps/aol_icon.xpm" 44 #include "pixmaps/aol_icon.xpm"
45 #include "pixmaps/away_icon.xpm" 45 #include "pixmaps/away_icon.xpm"
46 #include "pixmaps/dt_icon.xpm" 46 #include "pixmaps/dt_icon.xpm"
47 #include "pixmaps/free_icon.xpm" 47 #include "pixmaps/free_icon.xpm"
48 48
49 #define REVISION "gaim:$Revision: 1411 $" 49 #define REVISION "gaim:$Revision: 1414 $"
50 50
51 #define TYPE_SIGNON 1 51 #define TYPE_SIGNON 1
52 #define TYPE_DATA 2 52 #define TYPE_DATA 2
53 #define TYPE_ERROR 3 53 #define TYPE_ERROR 3
54 #define TYPE_SIGNOFF 4 54 #define TYPE_SIGNOFF 4
719 escape_text(message); 719 escape_text(message);
720 g_snprintf(buf, MSG_LEN, "toc_set_away \"%s\"", message); 720 g_snprintf(buf, MSG_LEN, "toc_set_away \"%s\"", message);
721 } else 721 } else
722 g_snprintf(buf, MSG_LEN, "toc_set_away \"\""); 722 g_snprintf(buf, MSG_LEN, "toc_set_away \"\"");
723 sflap_send(g, buf, -1, TYPE_DATA); 723 sflap_send(g, buf, -1, TYPE_DATA);
724 if (g->away)
725 g_free (g->away);
726 g->away = NULL;
727 if (message)
728 g->away = g_strdup (message);
724 } 729 }
725 730
726 static void toc_set_info(struct gaim_connection *g, char *info) 731 static void toc_set_info(struct gaim_connection *g, char *info)
727 { 732 {
728 char buf[MSG_LEN], buf2[MSG_LEN]; 733 char buf[MSG_LEN], buf2[MSG_LEN];