Fixed makeAntiCapability to Do The Right Thing in the face of channel-like capabilities

This commit is contained in:
Jeremy Fincher 2003-03-25 22:47:58 +00:00
parent 03c50ff7b4
commit 657526b985
1 changed files with 1 additions and 4 deletions

View File

@ -60,10 +60,7 @@ def isAntiCapability(capability):
def makeAntiCapability(capability):
if '.' in capability:
(channel, capability) = fromChannelCapability(capability)
if ircutils.isChannel(channel):
return '%s.!%s' % (channel, capability)
else:
return '!' + capability
return '%s.!%s' % (channel, capability)
else:
return '!' + capability