mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +01:00
pr/insp: coerse 'reginvite' named mode to 'regonly'
This commit is contained in:
parent
0540e10d50
commit
0cb9065d53
@ -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.
|
# can use InspIRCd as a model here and assign their mode map to our cmodes list.
|
||||||
for modepair in args[2:]:
|
for modepair in args[2:]:
|
||||||
name, char = modepair.split('=')
|
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
|
# We don't really care about mode prefixes; just the mode char
|
||||||
irc.cmodes[name.lstrip(':')] = char[-1]
|
irc.cmodes[name.lstrip(':')] = char[-1]
|
||||||
elif args[1] == 'USERMODES':
|
elif args[1] == 'USERMODES':
|
||||||
|
Loading…
Reference in New Issue
Block a user