summary refs log tree commit diff stats
path: root/src/common/hexchat.c
diff options
context:
space:
mode:
authorHeiki Ojasild <repentinus@fsfe.org>2013-05-09 21:11:58 +0000
committerHeiki Ojasild <repentinus@fsfe.org>2013-05-09 21:11:58 +0000
commit66853d9715431bb0ee7f595a79ccb03f98f141f3 (patch)
treeef1432c862437fd9960d7a2ccfe84e8cc1c8f983 /src/common/hexchat.c
parentdba9c424733aef64f984bb1f49bf76ee8de79100 (diff)
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.
Diffstat (limited to 'src/common/hexchat.c')
-rw-r--r--src/common/hexchat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/hexchat.c b/src/common/hexchat.c
index cef391d2..72b97e3a 100644
--- a/src/common/hexchat.c
+++ b/src/common/hexchat.c
@@ -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)
 			{