Stop calc from flooding, and can now join channels with a key.

This commit is contained in:
Sean B. Palmer
2008-06-19 18:58:24 +01:00
parent 68f2036546
commit bf20b46f74
5 changed files with 14 additions and 10 deletions

View File

@@ -61,7 +61,7 @@ def calc(phenny, input):
elif ' in ' in q:
result += ' ' + q.split(' in ', 1)[1]
phenny.say(q + ' = ' + result)
phenny.say(q + ' = ' + result[:350])
else: phenny.reply("Sorry, can't calculate that.")
calc.commands = ['calc']
calc.example = '.calc 5 + 3'