From fb481c98fbe0e152cd85d85e2d8196f8ca80c5c2 Mon Sep 17 00:00:00 2001 From: Tehom Date: Tue, 19 Jun 2018 04:12:46 -0400 Subject: [PATCH] Move query/unpickling out of loop for mutelist. --- evennia/comms/comms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evennia/comms/comms.py b/evennia/comms/comms.py index e40de664d1..32ea2731a1 100644 --- a/evennia/comms/comms.py +++ b/evennia/comms/comms.py @@ -91,7 +91,8 @@ class DefaultChannel(with_metaclass(TypeclassBase, ChannelDB)): @property def wholist(self): subs = self.subscriptions.all() - listening = [ob for ob in subs if ob.is_connected and ob not in self.mutelist] + muted = list(self.mutelist) + listening = [ob for ob in subs if ob.is_connected and ob not in muted] if subs: # display listening subscribers in bold string = ", ".join([account.key if account not in listening else "|w%s|n" % account.key for account in subs])