Commit Graph

259 Commits

Author SHA1 Message Date
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