Expose IRCChannel.mode_str() on REST API stats endpoint

This commit is contained in:
jesopo 2019-06-13 11:54:13 +01:00
parent 795f6afbeb
commit 11643f6eea

View file

@ -96,7 +96,8 @@ class Module(ModuleManager.BaseModule):
key=lambda nickname: nickname.lower()),
"topic": channel.topic,
"topic-set-at": channel.topic_time,
"topic-set-by": channel.topic_setter_nickname
"topic-set-by": channel.topic_setter_nickname,
"modes": channel.mode_str()
}
@utils.hook("api.get.channels")
def channels_api(self, event):