Skip to content

Instantly share code, notes, and snippets.

@Otacon22
Created January 29, 2015 13:31
Show Gist options
  • Save Otacon22/1a43c785226a06a72872 to your computer and use it in GitHub Desktop.
Save Otacon22/1a43c785226a06a72872 to your computer and use it in GitHub Desktop.
Plugin to ignore voice/devoice messages on Hexchat (useful with Slack.com IRC backend)
import hexchat
__module_name__ = "novoice"
__module_version__ = "2.0"
__module_description__ = "Ignores voice messages from ChanServ"
def voice_event(word, word_eol, userdata):
return hexchat.EAT_HEXCHAT
hexchat.hook_print("Channel Voice", voice_event)
hexchat.hook_print("Channel DeVoice", voice_event)
@andrewrk
Copy link

It would also be nice to ignore these:

* foo sets mode +v on #channel foo

Just add:

hexchat.hook_print("Channel Mode Generic", voice_event)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment