diff --git a/plugins/Factoids.py b/plugins/Factoids.py index b6b82c051..194264a6c 100644 --- a/plugins/Factoids.py +++ b/plugins/Factoids.py @@ -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'