Mercurial > pidgin
comparison src/server.c @ 5304:51903cf0c039
[gaim-migrate @ 5676]
David Brigada (jsi) writes:
" I added a couple return; sanity checks so that we don't
go through the process of setting the typing state when
it doesn't actually change. "
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Tue, 06 May 2003 00:10:12 +0000 |
| parents | 992550219800 |
| children | 6aa785e55d0f |
comparison
equal
deleted
inserted
replaced
| 5303:ada9efb82ea2 | 5304:51903cf0c039 |
|---|---|
| 290 } | 290 } |
| 291 | 291 |
| 292 | 292 |
| 293 void serv_set_away(struct gaim_connection *gc, char *state, char *message) | 293 void serv_set_away(struct gaim_connection *gc, char *state, char *message) |
| 294 { | 294 { |
| 295 if (!strcmp(gc->away_state, state) && !strcmp(gc->away, message)) | |
| 296 return; | |
| 297 | |
| 295 GaimPluginProtocolInfo *prpl_info = NULL; | 298 GaimPluginProtocolInfo *prpl_info = NULL; |
| 296 | 299 |
| 297 if (gc != NULL && gc->prpl != NULL) | 300 if (gc != NULL && gc->prpl != NULL) |
| 298 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 301 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
| 299 | 302 |
| 1163 if (!c) | 1166 if (!c) |
| 1164 return; | 1167 return; |
| 1165 | 1168 |
| 1166 im = GAIM_IM(c); | 1169 im = GAIM_IM(c); |
| 1167 | 1170 |
| 1171 if (im->typing_state == NOT_TYPING) | |
| 1172 return; | |
| 1173 | |
| 1168 gaim_im_stop_typing_timeout(im); | 1174 gaim_im_stop_typing_timeout(im); |
| 1169 gaim_im_set_typing_state(im, NOT_TYPING); | 1175 gaim_im_set_typing_state(im, NOT_TYPING); |
| 1170 gaim_im_update_typing(im); | 1176 gaim_im_update_typing(im); |
| 1171 | 1177 |
| 1172 b = gaim_find_buddy(gc->account, name); | 1178 b = gaim_find_buddy(gc->account, name); |
