mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Fixed makeAntiCapability to Do The Right Thing in the face of channel-like capabilities
This commit is contained in:
parent
03c50ff7b4
commit
657526b985
@ -60,12 +60,9 @@ def isAntiCapability(capability):
|
|||||||
def makeAntiCapability(capability):
|
def makeAntiCapability(capability):
|
||||||
if '.' in capability:
|
if '.' in capability:
|
||||||
(channel, capability) = fromChannelCapability(capability)
|
(channel, capability) = fromChannelCapability(capability)
|
||||||
if ircutils.isChannel(channel):
|
|
||||||
return '%s.!%s' % (channel, capability)
|
return '%s.!%s' % (channel, capability)
|
||||||
else:
|
else:
|
||||||
return '!' + capability
|
return '!' + capability
|
||||||
else:
|
|
||||||
return '!' + capability
|
|
||||||
|
|
||||||
_normal = string.maketrans('\r\n', ' ')
|
_normal = string.maketrans('\r\n', ' ')
|
||||||
def normalize(s):
|
def normalize(s):
|
||||||
|
Loading…
Reference in New Issue
Block a user