# HG changeset patch # User Luke Schierer # Date 1052179812 0 # Node ID 51903cf0c03951776363392234a9b56ac12af14b # Parent ada9efb82ea2c2de59f6dbb6fd85623e767cf491 [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 diff -r ada9efb82ea2 -r 51903cf0c039 src/server.c --- 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);