Created
February 7, 2012 20:51
-
-
Save AeroNotix/1761873 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Script to notify of a highlight | |
""" | |
class WeeChatEx(Exception): | |
pass | |
try: | |
import weechat | |
except ImportError: | |
Raise WeeChatEx('Script must be run with weechat.') | |
quit() | |
weechat.register('Script Name', | |
'Your Name', | |
'Version Num', | |
'License', | |
'Script Name', | |
'','') | |
def priv_msg_detector(*args): | |
# your code here | |
return weechat.WEECHAT_RC_OK | |
weechat.hook_signal("weechat_highlight", "priv_msg_detector", "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment