Mercurial > pidgin
comparison src/server.c @ 5325:141404465d38
[gaim-migrate @ 5698]
Paul A (darkrain) writes:
" The new sanity-checking code in serv_set_away
makes it impossible to return from away in some
cases (when the state is GAIM_AWAY_CUSTOM)
This patch fixes the problem."
since i hit this bug, fixing it is a good thing ;-)
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Wed, 07 May 2003 04:36:32 +0000 |
| parents | 1f901484599d |
| children | e938119382cf |
comparison
equal
deleted
inserted
replaced
| 5324:633067e155f9 | 5325:141404465d38 |
|---|---|
| 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 !strcmp(gc->away_state, state)) { | 299 !strcmp(gc->away_state, state)) { |
| 299 | 300 |
| 300 return; | 301 return; |
| 301 } | 302 } |
| 302 | 303 |
