Mercurial > pidgin.yaz
comparison src/server.c @ 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 | 141404465d38 |
children | 2c4188300aba |
comparison
equal
deleted
inserted
replaced
5327:b716ffc25d2d | 5328:e938119382cf |
---|---|
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 GaimPluginProtocolInfo *prpl_info = NULL; | 295 GaimPluginProtocolInfo *prpl_info = NULL; |
296 | 296 |
297 if (gc->away_state != NULL && state != NULL && | 297 if (gc->away_state == NULL && state == NULL && |
298 strcmp(gc->away_state, GAIM_AWAY_CUSTOM) && | 298 gc->away == NULL && message == NULL) { |
299 !strcmp(gc->away_state, state)) { | |
300 | 299 |
301 return; | 300 return; |
302 } | 301 } |
303 | 302 |
304 if (gc->away != NULL && message != NULL && !strcmp(gc->away, message)) | 303 if ((gc->away_state != NULL && state != NULL && |
304 !strcmp(gc->away_state, state) && | |
305 !strcmp(gc->away_state, GAIM_AWAY_CUSTOM)) && | |
306 (gc->away != NULL && message != NULL && !strcmp(gc->away, message))) { | |
307 | |
305 return; | 308 return; |
309 } | |
306 | 310 |
307 if (gc != NULL && gc->prpl != NULL) | 311 if (gc != NULL && gc->prpl != NULL) |
308 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 312 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
309 | 313 |
310 if (prpl_info && prpl_info->set_away) { | 314 if (prpl_info && prpl_info->set_away) { |