aboutsummaryrefslogtreecommitdiff
path: root/modules/stats.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-13 11:54:13 +0100
committerGravatar jesopo2019-06-13 11:54:13 +0100
commit11643f6eea28df901983f9c3249542f424daf608 (patch)
tree29fc7d51a9fa89e311d65cbf51294b31392588ff /modules/stats.py
parentMode mode (and mode arg) parsing to IRCChannel.py, add IRCChannel.mode_str (diff)
signature
Expose IRCChannel.mode_str() on REST API stats endpoint
Diffstat (limited to 'modules/stats.py')
-rw-r--r--modules/stats.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/stats.py b/modules/stats.py
index 7c411343..1a1fcdae 100644
--- a/modules/stats.py
+++ b/modules/stats.py
@@ -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):