All pastes #745840 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-22 18:48 UTC
rendered paste body
__module_name__ = "hideMessages"
__module_version__ = "0.1"
__module_description__ = "stops annoing messages in certain channels"

import xchat

EVENTS = ["Change Nick", "Quit", "Part", "Part with Reason", "Join"]
CHANNELS = [#xxx", "#xxx", "#xxx"]

def handleEvent (word, word_eol, userdata):
   if xchat.get_info("channel") in CHANNELS:
      return xchat.EAT_XCHAT

for i in EVENTS:
   xchat.hook_print(i, handleEvent)

print("hideMessages script loaded")