You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# version 1.0.7: change hook_print callback argument type of
# displayed/highlight (WeeChat >= 1.0)
# 2013-10-06, sitaktif
# version 1.0.6: Add a "test" action. Take API key config changes dynamically.
# 2012-09-24, sitaktif
# version 1.0.5: Do not send a notification when one is *sending* a query
# message.
# 2012-05-06, sitaktif
# version 1.0.4: Add an option to send everything in push. Also change
# default delimiters with brackets and make lines 80 chars wide.
# 2012-05-05, sitaktif
# version 1.0.3: Manage (non-ASCII) UTF8 chars
# 2012-01-05, Ac-town
# version 1.0.2: Fixes a few typos I ran into and adds only_away. Only_away
# only sends notifications if you are marked away.
# 2011-09-19, sitaktif
# version 1.0.1: Corrected a bug with debug functions
# 2011-07-22, sitaktif
# version 1.0.0: Initial release
importre
importweechatasw
w.register("nma", "sitaktif", "1.0.7", "GPL2",
"nma: Receive notifications on NotifyMyAndroid app.", "", "")
# script options
settings= {
"apikey" : ("", "Your NMA API key"),
"nick_separator_left" : ("(", "Left separator for the nick that highlighted you"),
"nick_separator_right" : (") ", "Right separator for the nick that highlighted you"),
"emergency_hilights" : ("-1", "Emergency of the highlight notifications (-2 is lowest, 2 is highest)"),
"emergency_priv_msg" : ("0", "Emergency of the query notifications (-2 is lowest, 2 is highest)"),
"activated" : ("on", "Whether the plugin will send notifications or not"),
"notify_hilights" : ("on", "Send NMA notifications when you get highlights"),
"notify_priv_msg" : ("on", "Send NMA notifications when you get a query message"),
"use_push_if_possible" : ("on", "If on, will try to fit the whole message in the title, which is send with the PUSH protocol. This makes you receive queries more quickly."),
"smart_notification" : ("off", "Don't send notifications if you are focusing the channel (default: off)"),
"only_away" : ("off", "Only send notifications if you are away"),