Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def quit(phenny, input):
- """Quit from the server. This is an owner-only command."""
- # Can only be done in privmsg by the owner
- if input.sender.startswith('#'):
- return
- if input.owner:
- # TODO: add optional arguments for a quit message
- a = input.group(2)
- if a:
- phenny.write(['QUIT'], a)
- __import__('os')._exit(0)
- else:
- phenny.write(['QUIT'])
- __import__('os')._exit(0)
- quit.commands = ['quit']
- quit.priority = 'high'
Advertisement
Add Comment
Please, Sign In to add comment