Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hexchat
- import time
- __module_name__ = 'hopCommand'
- __module_version__ = '1.0'
- __module_description__ = 'Respond to /hop by parting and re-joining the channel'
- def hopCommand(word, word_eol, userdata):
- hexchat.command('part ' + hexchat.get_info("channel") + " Hopping!")
- hexchat.command('timer 1 join ' + chan)
- return hexchat.EAT_ALL
- hexchat.hook_command('hop', hopCommand, help='Part and Re-join the Channel')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement