Mercurial > pidgin
comparison plugins/msn/msn.c @ 1586:bb97d3e8a54d
[gaim-migrate @ 1596]
BYE BYE BYE
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 16 Mar 2001 02:59:54 +0000 |
parents | f367ea8020fb |
children | 2a3cac07e69d |
comparison
equal
deleted
inserted
replaced
1585:f367ea8020fb | 1586:bb97d3e8a54d |
---|---|
554 | 554 |
555 g_strfreev(res); | 555 g_strfreev(res); |
556 | 556 |
557 return; | 557 return; |
558 } | 558 } |
559 else if (!strncmp("BYE ", buf, 4)) | |
560 { | |
561 char **res; | |
562 struct msn_conn *mc; | |
563 | |
564 res = g_strsplit(buf, " ", 0); | |
565 | |
566 mc = find_msn_conn_by_user(res[1]); | |
567 | |
568 if (mc) | |
569 { | |
570 /* Looks like we need to close up some stuff :-) */ | |
571 | |
572 if (mc->user) | |
573 free(mc->user); | |
574 | |
575 if (mc->secret) | |
576 free(mc->secret); | |
577 | |
578 if (mc->session) | |
579 free(mc->session); | |
580 | |
581 if (mc->txqueue) | |
582 free(mc->txqueue); | |
583 | |
584 gdk_input_remove(mc->inpa); | |
585 close(mc->fd); | |
586 | |
587 msn_connections = g_slist_remove(msn_connections, mc); | |
588 | |
589 g_free(mc); | |
590 } | |
591 | |
592 g_strfreev(res); | |
593 return; | |
594 } | |
595 | |
559 else if (!strncmp("XFR ", buf, 4)) | 596 else if (!strncmp("XFR ", buf, 4)) |
560 { | 597 { |
561 char **res; | 598 char **res; |
562 char *host; | 599 char *host; |
563 char *port; | 600 char *port; |