mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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)
|
channel = privmsgs.getChannel(msg, args)
|
||||||
(optlist, rest) = getopt.getopt(args, '', ['regexp=', 'exact='])
|
(optlist, rest) = getopt.getopt(args, '', ['regexp=', 'exact='])
|
||||||
|
if not optlist and not rest:
|
||||||
|
raise callbacks.ArgumentError
|
||||||
criteria = []
|
criteria = []
|
||||||
formats = []
|
formats = []
|
||||||
predicateName = 'p'
|
predicateName = 'p'
|
||||||
|
Loading…
Reference in New Issue
Block a user