Mercurial > pidgin.yaz
comparison src/protocols/msn/msn.c @ 2303:f5bf315e6104
[gaim-migrate @ 2313]
hi
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 17 Sep 2001 23:25:10 +0000 |
parents | 0b5c3338fa3d |
children | 019832e79d9f |
comparison
equal
deleted
inserted
replaced
2302:722a912562a0 | 2303:f5bf315e6104 |
---|---|
1200 } else if (strcmp(who, gc->username)) { | 1200 } else if (strcmp(who, gc->username)) { |
1201 g_snprintf(buf, MSN_BUF_LEN, "XFR %d SB\n", ++md->trId); | 1201 g_snprintf(buf, MSN_BUF_LEN, "XFR %d SB\n", ++md->trId); |
1202 if (msn_write(md->fd, buf, strlen(buf)) < 0) { | 1202 if (msn_write(md->fd, buf, strlen(buf)) < 0) { |
1203 hide_login_progress(gc, "Write error"); | 1203 hide_login_progress(gc, "Write error"); |
1204 signoff(gc); | 1204 signoff(gc); |
1205 return 0; | 1205 return 1; |
1206 } | 1206 } |
1207 | 1207 |
1208 ms = g_new0(struct msn_switchboard, 1); | 1208 ms = g_new0(struct msn_switchboard, 1); |
1209 md->switches = g_slist_append(md->switches, ms); | 1209 md->switches = g_slist_append(md->switches, ms); |
1210 ms->user = g_strdup(who); | 1210 ms->user = g_strdup(who); |
1212 ms->gc = gc; | 1212 ms->gc = gc; |
1213 ms->fd = -1; | 1213 ms->fd = -1; |
1214 } else | 1214 } else |
1215 /* in msn you can't send messages to yourself, so we'll fake like we received it ;) */ | 1215 /* in msn you can't send messages to yourself, so we'll fake like we received it ;) */ |
1216 serv_got_im(gc, who, message, flags | IM_FLAG_GAIMUSER, time(NULL)); | 1216 serv_got_im(gc, who, message, flags | IM_FLAG_GAIMUSER, time(NULL)); |
1217 return 0; | 1217 return 1; |
1218 } | 1218 } |
1219 | 1219 |
1220 static int msn_chat_send(struct gaim_connection *gc, int id, char *message) | 1220 static int msn_chat_send(struct gaim_connection *gc, int id, char *message) |
1221 { | 1221 { |
1222 struct msn_switchboard *ms = msn_find_switch_by_id(gc, id); | 1222 struct msn_switchboard *ms = msn_find_switch_by_id(gc, id); |