From 435c04e2aa876a7fbd9b5902e5e30d7c44e8dbad Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sat, 24 Jul 2010 13:15:10 -0500 Subject: [PATCH] admin command comments --- dr.botzo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dr.botzo.py b/dr.botzo.py index 9726575..87481b4 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -42,10 +42,15 @@ def on_privmsg(connection, event): admin_unlocked = True except NoOptionError: pass + # admin commands + + # join channel if what.split(' ')[0] == 'join' and admin_unlocked: connection.join(what.split(' ')[1]) + # part channel, with message elif what.split(' ')[0] == 'part' and admin_unlocked: connection.part(what.split(' ')[1], ' '.join(what.split(' ')[2:])) + # quit server, with message elif what.split(' ')[0] == 'quit' and admin_unlocked: connection.quit(' '.join(what.split(' ')[1:]))