blechinger

points_script.py #2

Nov 7th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import hexchat
  2. import re
  3.  
  4. __module_name__ = "points_script.py"
  5. __module_author__ = "blechinger"
  6. __module_version__ = "1"
  7. __module_description__ = "Get Points to shut the fuck up."
  8.  
  9. def onotice_cb(word, word_eol, userdata):
  10.         stripped_msg = hexchat.strip(word[1], -1, 3)
  11.  
  12.         if word_eol[0] and "You gained" in word_eol[0]: return hexchat.EAT_ALL
  13.  
  14. hexchat.hook_print("Notice", onotice_cb)
Add Comment
Please, Sign In to add comment