Advertisement
Guest User

hawk

a guest
Jan 31st, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bhawk
  2. ?
  3. #
  4. #  Copyright (C) 2010, Suhana <scripts@suhana.co.uk>
  5. #  All Rights Reserved.
  6. #
  7. #  Redistribution and use in source and binary forms, with or without
  8. #  modification, are permitted provided that the following conditions are met:
  9. #
  10. #  * Redistributions of source code must retain the above copyright notice,
  11. #    this list of conditions and the following disclaimer.
  12. #
  13. #  * Redistributions in binary form must reproduce the above copyright notice,
  14. #    this list of conditions and the following disclaimer in the documentation
  15. #    and/or other materials provided with the distribution.
  16. #
  17. #  * Neither the copyright holder nor the names of their contributors may be
  18. #    used to endorse or promote products derived from this software without
  19. #    specific prior written permission.
  20. #
  21. #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND CONTRIBUTORS
  22. #  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  23. #  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  24. #  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  25. #  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  26. #  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  27. #  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  28. #  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  29. #  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  30. #  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  31. #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32.  
  33. import xchat
  34.  
  35. __module_name__        = "ignore"
  36. __module_version__     = "0.1"
  37. __module_description__ = "Can ignore things!"
  38.  
  39. # event handlers
  40.  
  41. def allow_it(word, word_eol, userdata):
  42.     return xchat.EAT_NONE
  43.  
  44. def ignore_it(word, word_eol, userdata):
  45.     return xchat.EAT_XCHAT
  46.  
  47. # hook events (See Settings/Advanced/Text Events)
  48.  
  49. xchat.hook_print("Change Nick",      ignore_it)
  50. xchat.hook_print("Channel Voice",    ignore_it)
  51. xchat.hook_print("Channel Operator", ignore_it)
  52. xchat.hook_print("Join",             ignore_it)
  53. xchat.hook_print("Part",             ignore_it)
  54. xchat.hook_print("Part with Reason", ignore_it)
  55. xchat.hook_print("Quit",             ignore_it)
  56.  
  57. # that's it!
  58.  
  59. print "\002ignore.py\002 loaded"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement