mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Karma: Remove getName function which hasn't been used since 2004
This commit is contained in:
parent
ec018ef9f9
commit
730bca616b
@ -356,26 +356,6 @@ class Karma(callbacks.Plugin):
|
|||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
clear = wrap(clear, [('checkChannelCapability', 'op'), 'text'])
|
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):
|
def dump(self, irc, msg, args, channel, filename):
|
||||||
"""[<channel>] <filename>
|
"""[<channel>] <filename>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user