mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Misc: Handle KeyError in 'completenick'. Closes GH-315.
This commit is contained in:
parent
99ad2d193e
commit
5b0faad2f9
@ -515,6 +515,8 @@ class Misc(callbacks.Plugin):
|
||||
Returns the nick of someone on the channel whose nick begins with the
|
||||
given <beginning>.
|
||||
<channel> defaults to the current channel."""
|
||||
if channel not in irc.state.channels:
|
||||
irc.error(_('I\'m not even in %s.') % channel, Raise=True)
|
||||
if ('match-case', True) in optlist:
|
||||
def match(nick):
|
||||
return nick.startswith(beginning)
|
||||
|
Loading…
Reference in New Issue
Block a user