@@ -0,0 +1,1182 @@
+import hexchat%0A%0A__module_name__ = 'Highlight Logger'%0A__module_version__ = '2'%0A__module_description__ = 'Prints highlights to another tab'%0A# Forked from Arnavion's%0A%0ATAB_NAME = '(highlights)'%0A%0Adef find_highlighttab():%0A%09context = hexchat.find_context(channel=TAB_NAME)%0A%09if context == None:%0A%09%09hexchat.command('newserver -noconnect %7B0%7D'.format(TAB_NAME))%0A%09%09return hexchat.find_context(channel=TAB_NAME)%0A%09else:%0A%09%09return context%0A%0Adef highlight_callback(word, word_eol, user_data):%0A%09%0A%09word = %5B(word%5Bi%5D if len(word) %3E i else '') for i in range(4)%5D%0A%09%0A%09highlight_context = find_highlighttab()%0A%09%0A%09channel = hexchat.get_info('channel')%0A%09%0A%09if user_data == 'Channel Msg Hilight':%0A%09%09highlight_context.prnt('%7B0%7D%5Ct%5C00320%3C%7B4%7D%7B3%7D%7B1%7D%3E%5C00399 %7B2%7D'.format(channel, word%5B0%5D, word%5B1%5D, word%5B2%5D, word%5B3%5D))%0A%09elif user_data == 'Channel Action Hilight':%0A%09%09highlight_context.prnt('%7B0%7D%5Ct%5C00320%7B4%7D%7B3%7D%7B1%7D%5C00399 %7B2%7D'.format(channel, word%5B0%5D, word%5B1%5D, word%5B2%5D, word%5B3%5D))%09%0A%0A%09highlight_context.command('gui color 3')%0A%09%0A%09return hexchat.EAT_NONE%0A%0Ahexchat.hook_print('Channel Msg Hilight', highlight_callback, 'Channel Msg Hilight')%0Ahexchat.hook_print('Channel Action Hilight', highlight_callback, 'Channel Action Hilight')%0A

Create highlight.py