Skip to content

Instantly share code, notes, and snippets.

@authorNari
Created July 12, 2013 06:41
Show Gist options
  • Save authorNari/5982404 to your computer and use it in GitHub Desktop.
Save authorNari/5982404 to your computer and use it in GitHub Desktop.
xchat-gnome python plugin
# 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 <authornar@gmail.com>"
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