Implement suggestion by @Exio4

master
sfan5 2014-07-25 18:03:14 +02:00
parent cddefde28b
commit fa55206611
1 changed files with 2 additions and 1 deletions

View File

@ -66,8 +66,9 @@ def c(phenny, input):
if 'math.pow' in q or '**' in q:
phenny.reply("Kindly go fuck yourself!")
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:
log.log("action", "Calculation by %s timed out." % log.fmt_user(input), phenny)
phenny.reply("Took to long to calculate")
return
else: