# HG changeset patch # User Christian Hammond # Date 1052351254 0 # Node ID e938119382cf2f9cde46ba0ba5528b2dacc2e4bb # Parent b716ffc25d2d8d0fcb5c49cb840141627dcebcce [gaim-migrate @ 5701] Rewrote the sanity check. I do think one should be there. We'll see if this one works. committer: Tailor Script diff -r b716ffc25d2d -r e938119382cf src/server.c --- a/src/server.c Wed May 07 15:42:53 2003 +0000 +++ b/src/server.c Wed May 07 23:47:34 2003 +0000 @@ -294,15 +294,19 @@ { GaimPluginProtocolInfo *prpl_info = NULL; - if (gc->away_state != NULL && state != NULL && - strcmp(gc->away_state, GAIM_AWAY_CUSTOM) && - !strcmp(gc->away_state, state)) { + if (gc->away_state == NULL && state == NULL && + gc->away == NULL && message == NULL) { return; } - if (gc->away != NULL && message != NULL && !strcmp(gc->away, message)) + if ((gc->away_state != NULL && state != NULL && + !strcmp(gc->away_state, state) && + !strcmp(gc->away_state, GAIM_AWAY_CUSTOM)) && + (gc->away != NULL && message != NULL && !strcmp(gc->away, message))) { + return; + } if (gc != NULL && gc->prpl != NULL) prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);