Typo in extended_room contrib random_message_rate->room_message_rate

This commit is contained in:
Griatch 2023-08-08 11:15:17 +02:00
parent e4df3adb34
commit bfe8631b87

View file

@ -139,6 +139,7 @@ class ExtendedRoom(DefaultRoom):
echoed to the room at the given rate. echoed to the room at the given rate.
""" """
# fallback description if nothing else is set # fallback description if nothing else is set
fallback_desc = "You see nothing special." fallback_desc = "You see nothing special."
@ -194,9 +195,9 @@ class ExtendedRoom(DefaultRoom):
) )
def _start_broadcast_repeat_task(self): def _start_broadcast_repeat_task(self):
if self.random_message_rate and self.random_messages and not self.ndb.broadcast_repeat_task: if self.room_message_rate and self.room_messages and not self.ndb.broadcast_repeat_task:
self.ndb.broadcast_repeat_task = repeat( self.ndb.broadcast_repeat_task = repeat(
self.random_message_rate, self.repeat_broadcast_msg_to_room, persistent=False self.room_message_rate, self.repeat_broadcast_msg_to_room, persistent=False
) )
def at_init(self): def at_init(self):