Add option to support away tracking regardless of channel size

As there is option to disable away tracking, it would make sense to treat channel size limit of 0 as infinity for away tracking purposes. These changes attempt to implement this.
This commit is contained in:
Heiki Ojasild 2013-05-09 21:11:58 +00:00
parent dba9c42473
commit 66853d9715
1 changed files with 2 additions and 2 deletions

View File

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