Viewing Issue Simple Details
[ Jump to Notes ]
[ Wiki ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
0011691 |
[DCSS] Patches |
tweak |
N/A |
2018-09-23 09:39 |
2018-09-23 10:01 |
|
Reporter |
collin38 |
View Status |
public |
|
Assigned To |
aidanholm |
Priority |
normal |
Resolution |
done |
|
Status |
resolved |
|
Product Branch |
longterm development (0.25+) |
|
Summary |
0011691: Prevent spectators with hidden chat from counting in total. |
Description |
When a spectator has hidden their chat with "/hide (forever)", They are removed from the spectators list, but they still contribute to the number of spectators. This is confusing; if a user isn't in the list, they shouldn't be in the total count. I've attached a screenshot which shows 2 spectators but only lists 1 (beem)
This has the intended side effect of allowing users to spectate without disturbing the player. For example, I was asked "plz DONT SPEC ME." For such users it would be nice if there was a way to watch without interrupting. |
Additional Information |
|
Tags |
No tags attached. |
|
Attached Files |
0001-Prevent-spectators-with-chat-hidden-from-counting-in.patch [^] (987 bytes) 2018-09-23 09:39 [Show Content] [Hide Content]From bb66aaa17fb16c9eb63e8540a4533c6cb9089a48 Mon Sep 17 00:00:00 2001
From: Collin Johnston <collin389@gmail.com>
Date: Sun, 23 Sep 2018 00:14:35 -0700
Subject: [PATCH] Prevent spectators with chat hidden from counting in the
total.
---
crawl-ref/source/webserver/process_handler.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crawl-ref/source/webserver/process_handler.py b/crawl-ref/source/webserver/process_handler.py
index 0e141ef2a5..e0564b7bb6 100644
--- a/crawl-ref/source/webserver/process_handler.py
+++ b/crawl-ref/source/webserver/process_handler.py
@@ -424,7 +424,8 @@ class CrawlProcessHandlerBase(object):
self.update_watcher_description()
def watcher_count(self):
- return len([w for w in self._receivers if w.watched_game])
+ return len([w for w in self._receivers
+ if w.watched_game and not w.chat_hidden])
def send_client_to_all(self):
for receiver in self._receivers:
--
2.14.1
invis_spectator.PNG [^] (3,806 bytes) 2018-09-23 09:41
|
|