Karma: Remove getName function which hasn't been used since 2004

This commit is contained in:
James Vega 2009-01-19 22:28:01 +00:00
parent ec018ef9f9
commit 730bca616b

View File

@ -356,26 +356,6 @@ class Karma(callbacks.Plugin):
irc.replySuccess()
clear = wrap(clear, [('checkChannelCapability', 'op'), 'text'])
def getName(self, nick, msg, match):
addressed = callbacks.addressed(nick, msg)
name = callbacks.addressed(nick,
ircmsgs.IrcMsg(prefix='',
args=(msg.args[0], match.group(1)),
msg=msg))
if not name:
name = match.group(1)
if not addressed:
if not self.registryValue('allowUnaddressedKarma'):
return ''
if not msg.args[1].startswith(match.group(1)):
return ''
name = match.group(1)
elif addressed:
if not addressed.startswith(name):
return ''
name = name.strip('()')
return name
def dump(self, irc, msg, args, channel, filename):
"""[<channel>] <filename>