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

@@ -64,7 +64,7 @@ def tr(phenny, context):
else: msg = 'The %s to %s translation failed, sorry!' % (input, output)
phenny.reply(msg)
else: phenny.reply('Ehwhatnow?')
else: phenny.reply('Language guessing failed, so try suggesting one!')
tr.rule = ('$nick', ur'(?:([a-z]{2}) +)?(?:([a-z]{2}) +)?["“](.+?)["”]\? *$')
tr.example = '$nickname: "mon chien"? or $nickname: fr "mon chien"?'