3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 03:04:05 +01:00

ngircd: send burst modes after NJOIN, if there are any

This commit is contained in:
James Lu 2017-07-06 18:29:34 -07:00
parent 961e8ae991
commit 28313fd478

View File

@ -202,6 +202,11 @@ class NgIRCdProtocol(IRCS2SProtocol):
self.apply_modes(channel, (('+%s' % prefix, uid) for prefix in userpair[0])) self.apply_modes(channel, (('+%s' % prefix, uid) for prefix in userpair[0]))
if modes:
# Burst modes separately if there are any.
log.debug("(%s) sjoin: bursting modes %r for channel %r now", self.name, modes, channel)
self.mode(server, channel, modes)
### Handlers ### Handlers
def handle_pass(self, source, command, args): def handle_pass(self, source, command, args):