mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fixed bug where factoids would raise a DatabaseError when there were no arguments given.
This commit is contained in:
parent
d9d141a8e7
commit
1e8de55ff8
@ -361,6 +361,8 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg):
|
||||
"""
|
||||
channel = privmsgs.getChannel(msg, args)
|
||||
(optlist, rest) = getopt.getopt(args, '', ['regexp=', 'exact='])
|
||||
if not optlist and not rest:
|
||||
raise callbacks.ArgumentError
|
||||
criteria = []
|
||||
formats = []
|
||||
predicateName = 'p'
|
||||
|
Loading…
Reference in New Issue
Block a user