Expose IRCChannel.mode_str() on REST API stats endpoint
This commit is contained in:
parent
795f6afbeb
commit
11643f6eea
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
key=lambda nickname: nickname.lower()),
|
key=lambda nickname: nickname.lower()),
|
||||||
"topic": channel.topic,
|
"topic": channel.topic,
|
||||||
"topic-set-at": channel.topic_time,
|
"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")
|
@utils.hook("api.get.channels")
|
||||||
def channels_api(self, event):
|
def channels_api(self, event):
|
||||||
|
|
Loading…
Reference in a new issue