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.
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.
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.
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.