pep8 much?

This commit is contained in:
neersighted 2012-02-29 00:29:53 -08:00
parent e77e45d8b8
commit ed50bc746c
33 changed files with 92 additions and 99 deletions

View file

@ -57,10 +57,9 @@ fortunes = ["Help! I'm stuck in the fortune cookie factory!",
@hook.command(autohelp=False)
def fortune(inp, nick=None, say=None, input=None):
".fortune -- Fortune cookies on demand."
msg = "(" + nick + ") " + random.choice(fortunes)
if re.match("^[A-Za-z0-9_|.-\]\[]*$", inp.lower()) and inp != "":
msg = "(@" + inp + ") " + random.choice(fortunes)
say(msg)