refactor: Update according to Chapter 2.1.3.2 of RFC 116

This commit is contained in:
莘权 马 2023-11-08 22:03:06 +08:00
parent d232725a29
commit f47977daa8

View file

@ -139,6 +139,8 @@ class Role:
"""Listen to the corresponding behaviors in private message buffer"""
tags = {get_class_name(t) for t in actions}
self._rc.watch.update(tags)
# check RoleContext after adding watch actions
self._rc.check(self._role_id)
def subscribe(self, tags: Set[str]):
"""Listen to the corresponding behaviors"""