Merge pull request from Repentinus/patch-1

Support for away tracking regardless of channel size
This commit is contained in:
TingPing 2013-05-11 02:10:42 -07:00
commit 250d9b565c
2 changed files with 4 additions and 4 deletions
src

View File

@ -304,7 +304,7 @@ away_check (void)
GSList *list; GSList *list;
int full, sent, loop = 0; int full, sent, loop = 0;
if (!prefs.hex_away_track || prefs.hex_away_size_max < 1) if (!prefs.hex_away_track)
return 1; return 1;
doover: doover:
@ -319,7 +319,7 @@ doover:
if (sess->server->connected && if (sess->server->connected &&
sess->type == SESS_CHANNEL && sess->type == SESS_CHANNEL &&
sess->channel[0] && sess->channel[0] &&
sess->total <= prefs.hex_away_size_max) (sess->total <= prefs.hex_away_size_max || !prefs.hex_away_size_max))
{ {
if (!sess->done_away_check) if (!sess->done_away_check)
{ {

View File

@ -320,7 +320,7 @@ fe_userlist_rehash (session *sess, struct User *user)
if (!iter) if (!iter)
return; return;
if (prefs.hex_away_track && prefs.hex_away_size_max && user->away) if (prefs.hex_away_track && user->away)
nick_color = COL_AWAY; nick_color = COL_AWAY;
else if (prefs.hex_gui_ulist_color) else if (prefs.hex_gui_ulist_color)
nick_color = text_color_of(user->nick); nick_color = text_color_of(user->nick);
@ -340,7 +340,7 @@ fe_userlist_insert (session *sess, struct User *newuser, int row, int sel)
char *nick; char *nick;
int nick_color = 0; int nick_color = 0;
if (prefs.hex_away_track && prefs.hex_away_size_max && newuser->away) if (prefs.hex_away_track && newuser->away)
nick_color = COL_AWAY; nick_color = COL_AWAY;
else if (prefs.hex_gui_ulist_color) else if (prefs.hex_gui_ulist_color)
nick_color = text_color_of(newuser->nick); nick_color = text_color_of(newuser->nick);