3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 20:52:42 +01:00

inspircd: fix incorrect lstrip() usage when mangling mode names

This commit is contained in:
James Lu 2019-05-31 18:13:21 -07:00
parent 917543dd12
commit 722881bc33

View File

@ -566,8 +566,8 @@ class InspIRCdProtocol(TS6BaseProtocol):
self.prefixmodes[char[-1]] = char[0]
# Strip c_, u_ prefixes to be consistent with other protocols.
name = name.lstrip('c_')
name = name.lstrip('u_')
if name.startswith(('c_', 'u_')):
name = name[2:]
if name == 'reginvite': # Reginvite? That's an odd name.
name = 'regonly'