From 44e4ff4c1d18b7123af1831e0da5a6d4e48c6458 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 20 Oct 2016 08:08:00 +0200 Subject: [PATCH] Change to use the subscriptionhandler in distribute_message to support both players and objects subscribing to channels. --- evennia/comms/comms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/comms/comms.py b/evennia/comms/comms.py index 0e0259a767..1f1edd0ec8 100644 --- a/evennia/comms/comms.py +++ b/evennia/comms/comms.py @@ -85,7 +85,7 @@ class DefaultChannel(with_metaclass(TypeclassBase, ChannelDB)): @property def wholist(self): - subs = self.db_subscriptions.all() + subs = self.subscriptions.all() listening = [ob for ob in subs if ob.is_connected and ob not in self.mutelist] if subs: # display listening subscribers in bold @@ -238,7 +238,7 @@ class DefaultChannel(with_metaclass(TypeclassBase, ChannelDB)): This is also where logging happens, if enabled. """ - # get all players connected to this channel and send to them + # get all players or objects connected to this channel and send to them for entity in self.subscriptions.all(): # if the entity is muted, we don't send them a message if entity in self.mutelist: