irc: Add NAMES command
patch 8a4fa2a2053e3c2bceac8f793f0f3c77e3213fd8
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sun Feb 14 01:55:27 CET 2021
* irc: Add NAMES command
hunk ./irc.py 28
+IRC_NAMES_RX = re.compile(PREFIX + r'NAMES( +|\n)(?P<channels>[^ ]+)')
hunk ./irc.py 97
+ (IRC_NAMES_RX, self.handle_irc_names, True),
hunk ./irc.py 172
+ async def handle_irc_names(self, user, channels):
+ self.logger.debug('Handling NAMES: %s', channels)
+
+ for channel in channels.split(','):
+ await self.irc_namelist(user, channel)
+