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:
parent
917543dd12
commit
722881bc33
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user