Created
July 12, 2013 06:41
-
-
Save authorNari/5982404 to your computer and use it in GitHub Desktop.
xchat-gnome python plugin
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
# event list from here. | |
# https://github.com/xchataqua/xchat/blob/0253ca11761127b59488d0b69dd059dbe9cde699/src/common/textevents.in | |
# You can load this via following command. | |
# /py load xchat_hide.py | |
__module_name__ = "hide print" | |
__module_version__ = "1.0" | |
__module_description__ = "Hide unwanted print messages" | |
__module_author__ = "Narihiro Nakamura <[email protected]>" | |
import xchat | |
def hide(word, word_eol, userdata): | |
return xchat.EAT_XCHAT | |
EVENTS = [ | |
"Channel Mode Generic", | |
"Channel Operator", | |
"Join", | |
"Part", | |
"Part with Reason", | |
"Kick", | |
"Killed", | |
"Channel Ban", | |
] | |
for event in EVENTS: | |
xchat.hook_print(event, hide) | |
print "Plugin hide print loaded!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment