Mercurial > pidgin
comparison src/server.c @ 3601:81d514f109de
[gaim-migrate @ 3703]
faceprint swears this will improve typing notification. if it makes things
worse, we'll lynch him ;-P
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sun, 06 Oct 2002 19:09:07 +0000 |
| parents | bdd0bebd2d04 |
| children | 33643170bfde |
comparison
equal
deleted
inserted
replaced
| 3600:f6a55922110a | 3601:81d514f109de |
|---|---|
| 177 } | 177 } |
| 178 | 178 |
| 179 int serv_send_im(struct gaim_connection *gc, char *name, char *message, int len, int flags) | 179 int serv_send_im(struct gaim_connection *gc, char *name, char *message, int len, int flags) |
| 180 { | 180 { |
| 181 int val = -EINVAL; | 181 int val = -EINVAL; |
| 182 struct conversation *cnv = find_conversation(name); | |
| 182 if (gc->prpl && gc->prpl->send_im) | 183 if (gc->prpl && gc->prpl->send_im) |
| 183 val = gc->prpl->send_im(gc, name, message, len, flags); | 184 val = gc->prpl->send_im(gc, name, message, len, flags); |
| 184 | 185 |
| 185 if (!(flags & IM_FLAG_AWAY)) | 186 if (!(flags & IM_FLAG_AWAY)) |
| 186 serv_touch_idle(gc); | 187 serv_touch_idle(gc); |
| 188 | |
| 189 if (cnv && cnv->type_again_timeout) | |
| 190 gtk_timeout_remove(cnv->type_again_timeout); | |
| 187 | 191 |
| 188 serv_send_typing(gc, name, FALSE); | 192 serv_send_typing(gc, name, FALSE); |
| 189 return val; | 193 return val; |
| 190 } | 194 } |
| 191 | 195 |
