src/protocols/msn/msn.c

changeset 4069
ddddcff3183d
parent 4068
708fd33e08d6
child 4111
93b27900416e
equal deleted inserted replaced
4068:708fd33e08d6 4069:ddddcff3183d
2106 2106
2107 static void msn_convo_closed(struct gaim_connection *gc, char *who) 2107 static void msn_convo_closed(struct gaim_connection *gc, char *who)
2108 { 2108 {
2109 struct msn_switchboard *ms = msn_find_switch(gc, who); 2109 struct msn_switchboard *ms = msn_find_switch(gc, who);
2110 2110
2111 if (ms) 2111 if (ms) {
2112 char sendbuf[256];
2113
2114 g_snprintf(sendbuf, sizeof(sendbuf), "BYE %s\r\n", gc->username);
2115
2116 msn_write(ms->fd, sendbuf, strlen(sendbuf));
2117
2112 msn_kill_switch(ms); 2118 msn_kill_switch(ms);
2119 }
2113 } 2120 }
2114 2121
2115 static void msn_keepalive(struct gaim_connection *gc) 2122 static void msn_keepalive(struct gaim_connection *gc)
2116 { 2123 {
2117 struct msn_data *md = gc->proto_data; 2124 struct msn_data *md = gc->proto_data;

mercurial