From 2f7c24a0ca7f8a3b6250a7f40b43285507040429 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Sun, 22 Dec 2013 00:12:40 +0100 Subject: [PATCH] I should probably go to bed instead of doing coding... --- tell.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tell.py b/tell.py index 6d48bee..0ff25b5 100755 --- a/tell.py +++ b/tell.py @@ -21,14 +21,14 @@ def tell(phenny, input): return phenny.reply("Need a nickname...") if not ' ' in arg: return phenny.reply("...and text") - if target.lower() == teller.lower(): - return phenny.say("You can tell that to yourself") - if target.lower() == phenny.nick.lower(): - return phenny.say("I'm not dumb, you know?") teller = input.nick target = arg.split(" ")[0] text = " ".join(arg.split(" ")[1:]) d = (teller, target, text) + if target.lower() == teller.lower(): + return phenny.say("You can tell that to yourself") + if target.lower() == phenny.nick.lower(): + return phenny.say("I'm not dumb, you know?") tell_list.append(d)