Add a quit command

This commit is contained in:
moneromooo 2015-01-01 11:29:32 +00:00
parent 8d115438a3
commit 852e75dc16
2 changed files with 21 additions and 0 deletions

View file

@ -39,6 +39,11 @@ def PartChannel(nick,chan,cmd):
pchan = chan
Part(pchan)
def QuitIRC(nick,chan,cmd):
msg = ""
for w in cmd[:1]:
msg = msg + " " + w
Quit(msg)
RegisterCommand({
'module': __name__,
@ -56,3 +61,10 @@ RegisterCommand({
'admin': True,
'help': "Makes %s part from a channel" % (config.tipbot_name)
})
RegisterCommand({
'module': __name__,
'name': 'quit',
'function': QuitIRC,
'admin': True,
'help': "Makes %s quit IRC" % (config.tipbot_name)
})