Commit Graph

182 Commits

Author SHA1 Message Date
John Reese 786e0b4928 Updated roadmap 2011-01-14 10:02:51 -05:00
John Reese dbd442b931 Compact condition checking 2011-01-14 09:48:56 -05:00
John Reese 307f17e493 Implemented away_only condition 2011-01-14 09:45:47 -05:00
John Reese 9f89dc5c9c Added roadmap to readme 2011-01-14 09:18:46 -05:00
John Reese 5b2389d8d1 Expanded project description 2011-01-13 23:14:06 -05:00
John Reese cbcaeaa9c8 Removed debug sections 2011-01-13 23:01:27 -05:00
John Reese 828b51bb32 Copout HELP command 2011-01-13 22:58:49 -05:00
John Reese e2906f5aab Hide vim:set from rendered README 2011-01-13 22:57:35 -05:00
John Reese 3aaafb7ffb Implemented UNSET command to restore default values 2011-01-13 22:56:15 -05:00
John Reese 6c191f6471 Rearrange commands 2011-01-13 22:51:53 -05:00
John Reese 563b52bab7 Added message_length option 2011-01-13 22:46:02 -05:00
John Reese c749f4874b Added message_uri option 2011-01-13 22:43:02 -05:00
John Reese 53a965fe5c Modified format for condition options/defaults 2011-01-13 22:16:32 -05:00
John Reese 90aa6bdb0a Documented commands and client_count condition 2011-01-13 22:15:20 -05:00
John Reese 1c2e9b019b Added STATUS command to check current conditions 2011-01-13 22:03:49 -05:00
John Reese 01885f39f4 Modify GET command to optionally list all values 2011-01-13 22:03:30 -05:00
John Reese db077ea78a Implemented client_count condition
Config option client_count_less_than (uint) determines if notifications
will be sent based on how many IRC clients are connected to ZNC.  A
value of zero disables this condition (always met), otherwise only sends
notifications if the number of connected clients is less than the
configured threshold.

Personal use case is client_count_less_than = 2, in that I always have
Irssi connected from my server, but if also connected from my phone, I
don't want duplicate notifications.
2011-01-13 22:00:24 -05:00
John Reese 7bcae40012 Fix error when sending commind with zero tokens 2011-01-13 22:00:08 -05:00
John Reese 0c5829ff0e Don't override default option values with empty strings 2011-01-13 21:59:44 -05:00
John Reese 42dc9a34e0 Capitalization 2011-01-13 21:23:42 -05:00
John Reese f3e6c8eafb Added ZNC and Notifo links to readme 2011-01-13 21:23:06 -05:00
John Reese 65449b763c Added readme 2011-01-13 21:17:13 -05:00
John Reese 6f10bb19f6 Implemented basic highlight matching against nick 2011-01-13 20:58:13 -05:00
John Reese c4d4718709 Implemented handling of channel messages and actions 2011-01-13 20:39:08 -05:00
John Reese 304bef93f0 Switch to using an MCString to track config options 2011-01-13 19:53:22 -05:00
John Reese 5c12abe602 Make notify_pm() only decide on sending notification
In order to better abstract and handle the difference between messages
and actions, notify_pm() is changed to only determine whether a private
message or action should send a notification to the user, and leave
sending the notification to the calling method.  This allows PM's and
PA's to have different notification text formats, while still
centralizing the logic to decide when to send them.

TODO: Make notify_pm() actually use logic instead of blindly saying yes.
2011-01-13 19:15:17 -05:00
John Reese f5590832cc Implemented PM notifications 2011-01-13 17:40:41 -05:00
John Reese 31541dda0a Factored out auth string encoding
Rather than re-encoding the auth string for every message, factored it into a
separate method that only gets called when the username or password is changed,
or the plugin is loaded/reloaded.
2011-01-13 17:16:43 -05:00
John Reese 042ade55da Added configurable message title to send_message()
Also abstracted out app name to object-level CString rather than building it
every time send_message() is executed.
2011-01-13 17:09:17 -05:00
John Reese 0baa7d866d Proof of concept completed
User can set and retrieve config values for their Notifo account name
and API secret.  The SEND command allows the user to send an arbitrary
notification to their account.

Fixed issue with encoding credentials in request headers.

Tested against official API and notification succeeded.
2011-01-13 16:28:58 -05:00
John Reese 53e0e30aaf Added MIT license file 2011-01-10 22:37:48 -05:00
John Reese 80e0da5708 Initial commit, any command triggers HTTP POST
Currently the plugin waits for any command to be sent to *notifo, at
which point it triggers a canned HTTP request to a test URL.  This
canned request will be replaced soon with a proper, authenticated
request to the official Notifo service URL.
2011-01-10 22:33:13 -05:00