Implement suggestion by @Exio4
parent
cddefde28b
commit
fa55206611
3
calc.py
3
calc.py
|
@ -66,8 +66,9 @@ def c(phenny, input):
|
||||||
if 'math.pow' in q or '**' in q:
|
if 'math.pow' in q or '**' in q:
|
||||||
phenny.reply("Kindly go fuck yourself!")
|
phenny.reply("Kindly go fuck yourself!")
|
||||||
antiabuse.ignore("*!*" + input.hostmask[input.hostmask.find("@"):])
|
antiabuse.ignore("*!*" + input.hostmask[input.hostmask.find("@"):])
|
||||||
log.log("action", "Auto-ignored %s for !c crash attempt" % log.fmt_user(input), phenny)
|
log.log("action", "Auto-ignored %s for !c crash attempt." % log.fmt_user(input), phenny)
|
||||||
else:
|
else:
|
||||||
|
log.log("action", "Calculation by %s timed out." % log.fmt_user(input), phenny)
|
||||||
phenny.reply("Took to long to calculate")
|
phenny.reply("Took to long to calculate")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue