mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Add a quit command
This commit is contained in:
parent
8d115438a3
commit
852e75dc16
2 changed files with 21 additions and 0 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue