Mercurial > pidgin
comparison src/idle.c @ 4547:1f19b66c5d84
[gaim-migrate @ 4826]
idle_time check fix
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Fri, 07 Feb 2003 01:08:25 +0000 |
parents | ba99d30afc14 |
children | 5fcb44d771d2 |
comparison
equal
deleted
inserted
replaced
4546:a951bb590857 | 4547:1f19b66c5d84 |
---|---|
117 server */ | 117 server */ |
118 if (report_idle == IDLE_NONE) { | 118 if (report_idle == IDLE_NONE) { |
119 return TRUE; | 119 return TRUE; |
120 } | 120 } |
121 | 121 |
122 if (idle_time > IDLEMARK && !gc->is_idle) { | 122 if (idle_time >= IDLEMARK && !gc->is_idle) { |
123 debug_printf("setting %s idle %d seconds\n", gc->username, idle_time); | 123 debug_printf("setting %s idle %d seconds\n", gc->username, idle_time); |
124 serv_set_idle(gc, idle_time); | 124 serv_set_idle(gc, idle_time); |
125 gc->is_idle = 1; | 125 gc->is_idle = 1; |
126 system_log(log_idle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); | 126 system_log(log_idle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); |
127 } else if (idle_time < IDLEMARK && gc->is_idle) { | 127 } else if (idle_time < IDLEMARK && gc->is_idle) { |