hexchat highlight script reddit / irc ---------------------------------------------------------------------- hyveplexel · 2023-03-17 07:03 how do i make a script that highlights words from a certain user but not highlight when they say my name? i want it to look like normal text and not make the sound ---------------------------------------------------------------------- crimsaq · 2023-03-17 15:47 \# To use: \# 1. Save this script as "highlight\_words.py" in your Hexchat addons folder \# 2. Load the script in Hexchat: /load highlight\_words.py \# 3. Set the words you want to highlight in the "highlight\_words" list below import hexchat \# List of words to highlight highlight\_words = \['example', 'word', 'highlight'\] def highlight(word, word\_eol, userdata): for highlight\_word in highlight\_words: if highlight\_word in word\[1\]: hexchat.command('gui color 3') return hexchat.EAT\_NONE return hexchat.EAT\_NONE \# Register the script with Hexchat hexchat.hook\_print('Channel Message', highlight) ---------------------------------------------------------------------- hyveplexel · 2023-03-18 05:21 is it supposed to be like this? im still getting highlights for my name __module_name__ = 'a' __module_version__ = '1' __module_description__ = '.' import hexchat highlight_words = ['.'] def highlight(word, word_eol, userdata): for highlight_word in highlight_words: if highlight_word in word[1]: hexchat.command('gui color 3') return hexchat.EAT_NONE return hexchat.EAT_NONE hexchat.hook_print('Channel Message', highlight)