Mercurial > pidgin.yaz
changeset 5328:e938119382cf
[gaim-migrate @ 5701]
Rewrote the sanity check. I do think one should be there. We'll see if this
one works.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 07 May 2003 23:47:34 +0000 |
parents | b716ffc25d2d |
children | 5e1eeeba4e68 |
files | src/server.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);