summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--megahal_bot.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/megahal_bot.py b/megahal_bot.py
index 20fe7aa..d481dae 100644
--- a/megahal_bot.py
+++ b/megahal_bot.py
@@ -137,7 +137,12 @@ Argumente:
elif o == "--host":
host = a
elif o == "--profile":
- sqlKey = a
+ if sql.has_key(a):
+ sqlKey = a
+ print sql[a]
+ else:
+ print "Profile %s does not exist, create it!" % a
+ sys.exit(0)
mh_python.initbrain()
@@ -162,10 +167,10 @@ Argumente:
logging.basicConfig(level=logging.DEBUG)
if local:
- print ">>>",
+ print ">>> ",
while True:
x=sys.stdin.readline().strip()
- print "<<< %s\n>>>" % mh_python.doreply(x),
+ print "<<< %s\n>>> " % mh_python.doreply(x),
else:
print "press ctrl-c to abort"
event = Event()