diff options
| author | 2019-06-13 11:54:13 +0100 | |
|---|---|---|
| committer | 2019-06-13 11:54:13 +0100 | |
| commit | 11643f6eea28df901983f9c3249542f424daf608 (patch) | |
| tree | 29fc7d51a9fa89e311d65cbf51294b31392588ff | |
| parent | Mode mode (and mode arg) parsing to IRCChannel.py, add IRCChannel.mode_str (diff) | |
| signature | ||
Expose IRCChannel.mode_str() on REST API stats endpoint
| -rw-r--r-- | modules/stats.py | 3 |
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): |
