jacob614

(he)xchat nick change color ignore

Mar 3rd, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. import xchat
  2.  
  3. __module_name__ = "Color Ignore"
  4. __module_version__ = "1.0"
  5. __module_description__ = "Nick changes won't make channels change to 'new info' color"
  6.  
  7. # Timer
  8. def command_timer(userdata):
  9.     try:
  10.         thechannel = xchat.find_context(channel=userdata[1])
  11.         thechannel.command(userdata[0])
  12.     except:
  13.         xchat.command(userdata)
  14.  
  15. # Nick change ignore
  16. def color_ignore(word, word_eol, userdata):
  17.     data = ["gui color 0", xchat.get_info("channel")]
  18.     xchat.hook_timer(20, command_timer, data)
  19.  
  20. xchat.hook_print("Change Nick", color_ignore)
  21. xchat.hook_print("Your Nick Changing", color_ignore)
Advertisement
Add Comment
Please, Sign In to add comment