admin command comments

This commit is contained in:
Brian S. Stephan 2010-07-24 13:15:10 -05:00
parent 85046a8277
commit 435c04e2aa
1 changed files with 5 additions and 0 deletions

View File

@ -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:]))