admin command comments
This commit is contained in:
parent
85046a8277
commit
435c04e2aa
@ -42,10 +42,15 @@ def on_privmsg(connection, event):
|
|||||||
admin_unlocked = True
|
admin_unlocked = True
|
||||||
except NoOptionError: pass
|
except NoOptionError: pass
|
||||||
|
|
||||||
|
# admin commands
|
||||||
|
|
||||||
|
# join channel
|
||||||
if what.split(' ')[0] == 'join' and admin_unlocked:
|
if what.split(' ')[0] == 'join' and admin_unlocked:
|
||||||
connection.join(what.split(' ')[1])
|
connection.join(what.split(' ')[1])
|
||||||
|
# part channel, with message
|
||||||
elif what.split(' ')[0] == 'part' and admin_unlocked:
|
elif what.split(' ')[0] == 'part' and admin_unlocked:
|
||||||
connection.part(what.split(' ')[1], ' '.join(what.split(' ')[2:]))
|
connection.part(what.split(' ')[1], ' '.join(what.split(' ')[2:]))
|
||||||
|
# quit server, with message
|
||||||
elif what.split(' ')[0] == 'quit' and admin_unlocked:
|
elif what.split(' ')[0] == 'quit' and admin_unlocked:
|
||||||
connection.quit(' '.join(what.split(' ')[1:]))
|
connection.quit(' '.join(what.split(' ')[1:]))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user