summaryrefslogtreecommitdiffstats
path: root/modules/calc.py
diff options
context:
space:
mode:
authorSean B. Palmer <http://inamidst.com/sbp/>2008-06-19 18:58:24 +0100
committerSean B. Palmer <http://inamidst.com/sbp/>2008-06-19 18:58:24 +0100
commitbf20b46f7473ec323cd38464fd8662c5fbc2c72a (patch)
tree4d6b8ac3f2277999dc60b3ec20cb3ac7687c0c61 /modules/calc.py
parent68f2036546c286bb864dbc2ade251041bf7e6be9 (diff)
downloadbot-bf20b46f7473ec323cd38464fd8662c5fbc2c72a.tar.gz
bot-bf20b46f7473ec323cd38464fd8662c5fbc2c72a.tar.bz2
bot-bf20b46f7473ec323cd38464fd8662c5fbc2c72a.zip
Stop calc from flooding, and can now join channels with a key.
Diffstat (limited to 'modules/calc.py')
-rwxr-xr-xmodules/calc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/calc.py b/modules/calc.py
index 9a3b174..e664cb2 100755
--- a/modules/calc.py
+++ b/modules/calc.py
@@ -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'