Skip to content

Instantly share code, notes, and snippets.

@Otacon22
Created January 29, 2015 13:31
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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)
@mockturtl
Copy link

👍 Thank you so very much. Slack IRC is impossible otherwise.

Additional info: http://hexchat.readthedocs.org/en/latest/script_python.html#autoloading-modules

@traverseda
Copy link

+1

@lo0m
Copy link

lo0m commented Jul 30, 2015

this just made my day. thx!

@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