comparison src/toc.c @ 1412:47413c49bbee

[gaim-migrate @ 1422] hi there oh yeah, scrutty fixed a socks problem committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 18 Jan 2001 19:54:13 +0000
parents 96e93119268d
children f16e17d42b43
comparison
equal deleted inserted replaced
1411:a3e472534370 1412:47413c49bbee
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: 1414 $" 49 #define REVISION "gaim:$Revision: 1422 $"
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
267 signoff(gc); 267 signoff(gc);
268 return; 268 return;
269 } 269 }
270 270
271 /* there's data waiting to be read, so read it. */ 271 /* there's data waiting to be read, so read it. */
272 if (wait_reply(gc, buf, 8 * 1024) < 0) { 272 if (wait_reply(gc, buf, 8 * 1024) <= 0) {
273 hide_login_progress(gc, _("Connection Closed")); 273 hide_login_progress(gc, _("Connection Closed"));
274 signoff(gc); 274 signoff(gc);
275 return; 275 return;
276 } 276 }
277 277
670 670
671 static void toc_set_config(struct gaim_connection *gc) 671 static void toc_set_config(struct gaim_connection *gc)
672 { 672 {
673 char buf[MSG_LEN], snd[MSG_LEN]; 673 char buf[MSG_LEN], snd[MSG_LEN];
674 toc_build_config(gc, buf, MSG_LEN, FALSE); 674 toc_build_config(gc, buf, MSG_LEN, FALSE);
675 g_snprintf(snd, MSG_LEN, "toc_set_config \"%s\"", buf); 675 g_snprintf(snd, MSG_LEN, "toc_set_config {%s}", buf);
676 sflap_send(gc, snd, -1, TYPE_DATA); 676 sflap_send(gc, snd, -1, TYPE_DATA);
677 } 677 }
678 678
679 static void toc_get_info(struct gaim_connection *g, char *name) 679 static void toc_get_info(struct gaim_connection *g, char *name)
680 { 680 {