Mercurial > pidgin
changeset 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 | ada9efb82ea2 |
children | d2732160850b |
files | src/server.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server.c Tue May 06 00:09:16 2003 +0000 +++ b/src/server.c Tue May 06 00:10:12 2003 +0000 @@ -292,6 +292,9 @@ void serv_set_away(struct gaim_connection *gc, char *state, char *message) { + if (!strcmp(gc->away_state, state) && !strcmp(gc->away, message)) + return; + GaimPluginProtocolInfo *prpl_info = NULL; if (gc != NULL && gc->prpl != NULL) @@ -1165,6 +1168,9 @@ im = GAIM_IM(c); + if (im->typing_state == NOT_TYPING) + return; + gaim_im_stop_typing_timeout(im); gaim_im_set_typing_state(im, NOT_TYPING); gaim_im_update_typing(im);