Mercurial > pidgin
comparison src/protocols/msn/msn.c @ 2231:8c4ff1a368bd
[gaim-migrate @ 2241]
blue:~/gaim/app/src/protocols $ ./gtk
icq: 0
irc: 0
jabber: 52
msn: 0
napster: 0
oscar: 7
toc: 17
yahoo: 0
zephyr: 1
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 07 Sep 2001 08:09:22 +0000 |
parents | cfc9abe45db2 |
children | 2f03cfd21fc2 |
comparison
equal
deleted
inserted
replaced
2230:cfc9abe45db2 | 2231:8c4ff1a368bd |
---|---|
1171 g_free(tmp); | 1171 g_free(tmp); |
1172 } | 1172 } |
1173 g_free(md); | 1173 g_free(md); |
1174 } | 1174 } |
1175 | 1175 |
1176 static int msn_send_im(struct gaim_connection *gc, char *who, char *message, int away) | 1176 static int msn_send_im(struct gaim_connection *gc, char *who, char *message, int flags) |
1177 { | 1177 { |
1178 struct msn_data *md = gc->proto_data; | 1178 struct msn_data *md = gc->proto_data; |
1179 struct msn_switchboard *ms = msn_find_switch(gc, who); | 1179 struct msn_switchboard *ms = msn_find_switch(gc, who); |
1180 char buf[MSN_BUF_LEN]; | 1180 char buf[MSN_BUF_LEN]; |
1181 | 1181 |
1202 ms->txqueue = g_strdup(message); | 1202 ms->txqueue = g_strdup(message); |
1203 ms->gc = gc; | 1203 ms->gc = gc; |
1204 ms->fd = -1; | 1204 ms->fd = -1; |
1205 } else | 1205 } else |
1206 /* in msn you can't send messages to yourself, so we'll fake like we received it ;) */ | 1206 /* in msn you can't send messages to yourself, so we'll fake like we received it ;) */ |
1207 serv_got_im(gc, who, message, away, time(NULL)); | 1207 serv_got_im(gc, who, message, flags & IM_FLAG_AWAY, time(NULL)); |
1208 return 0; | 1208 return 0; |
1209 } | 1209 } |
1210 | 1210 |
1211 static int msn_chat_send(struct gaim_connection *gc, int id, char *message) | 1211 static int msn_chat_send(struct gaim_connection *gc, int id, char *message) |
1212 { | 1212 { |