aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IRCChannel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/IRCChannel.py b/src/IRCChannel.py
index a88579f3..6e54726a 100644
--- a/src/IRCChannel.py
+++ b/src/IRCChannel.py
@@ -168,6 +168,8 @@ class Channels(object):
return (channel for channel in self._channels.values())
def __contains__(self, name: str) -> bool:
return self.contains(name)
+ def __len__(self) -> int:
+ return len(self._channels)
def _get_id(self, channel_name: str) -> int:
self._bot.database.channels.add(self._server.id, channel_name)