Mercurial > hg
comparison mcabber/src/screen.h @ 940:fc30221b952d
Fix an autoaway problem
This patch fixes an autoaway related issue introduced in the previous
changeset.
scr_GetAutoAwayTimeout() should not return a null timeout when the user
status do not need auto-away (i.e. status != online,free).
This patch also tries to save a few time() calls.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 14 Jul 2006 19:32:23 +0200 |
parents | 12fa2ae6445d |
children | ef10906691bb |
comparison
equal
deleted
inserted
replaced
939:12fa2ae6445d | 940:fc30221b952d |
---|---|
89 inline const char *scr_get_multiline(void); | 89 inline const char *scr_get_multiline(void); |
90 inline const char *scr_get_multimode_subj(void); | 90 inline const char *scr_get_multimode_subj(void); |
91 | 91 |
92 inline void scr_Beep(void); | 92 inline void scr_Beep(void); |
93 | 93 |
94 unsigned int scr_GetAutoAwayTimeout(); | 94 unsigned int scr_GetAutoAwayTimeout(time_t now); |
95 void scr_CheckAutoAway(int activity); | 95 void scr_CheckAutoAway(int activity); |
96 | 96 |
97 // For commands... | 97 // For commands... |
98 void scr_RosterTop(void); | 98 void scr_RosterTop(void); |
99 void scr_RosterBottom(void); | 99 void scr_RosterBottom(void); |