3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

pr/insp: coerse 'reginvite' named mode to 'regonly'

This commit is contained in:
James Lu 2015-07-19 15:56:04 -07:00
parent 0540e10d50
commit 0cb9065d53

View File

@ -507,6 +507,8 @@ def handle_events(irc, data):
# can use InspIRCd as a model here and assign their mode map to our cmodes list.
for modepair in args[2:]:
name, char = modepair.split('=')
if name == 'reginvite': # Reginvite? That's a dumb name.
name = 'regonly'
# We don't really care about mode prefixes; just the mode char
irc.cmodes[name.lstrip(':')] = char[-1]
elif args[1] == 'USERMODES':