Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created February 7, 2012 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AeroNotix/1761873 to your computer and use it in GitHub Desktop.
Save AeroNotix/1761873 to your computer and use it in GitHub Desktop.
"""
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