mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-26 04:04:22 +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]
|
self.prefixmodes[char[-1]] = char[0]
|
||||||
|
|
||||||
# Strip c_, u_ prefixes to be consistent with other protocols.
|
# Strip c_, u_ prefixes to be consistent with other protocols.
|
||||||
name = name.lstrip('c_')
|
if name.startswith(('c_', 'u_')):
|
||||||
name = name.lstrip('u_')
|
name = name[2:]
|
||||||
|
|
||||||
if name == 'reginvite': # Reginvite? That's an odd name.
|
if name == 'reginvite': # Reginvite? That's an odd name.
|
||||||
name = 'regonly'
|
name = 'regonly'
|
||||||
|
Loading…
Reference in New Issue
Block a user