Add exception to large numbers when you're parroting or factoring
This commit is contained in:
parent
ba4048d6d2
commit
81e28e6b0f
|
@ -4,7 +4,7 @@ from math import floor
|
|||
@plugin.group("mbtilde","<operation> [args]")
|
||||
def mbtilde(bot,channel,nick,subcmd,*args):
|
||||
for arg in args:
|
||||
if (arg.isdigit() and int(arg)>100 and subcmd!="factor"):
|
||||
if (arg.isdigit() and int(arg)>100 and subcmd not in ("factor","parrot")):
|
||||
bot.say(channel,"no u")
|
||||
return True
|
||||
if subcmd in "add sub mult div mod pow".split() and len(args)!=2:
|
||||
|
|
Loading…
Reference in New Issue