Created
January 29, 2015 13:31
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
this just made my day. thx!
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
+1