Add support for loading push as a user module

Loading as a user module will require either the webadmin or
controlpanel module, as ZNC Push will retain the current behavior
of loading as a network module by default.

Fixes #79
This commit is contained in:
John Reese 2014-04-11 13:45:33 -07:00
parent e0e6ad28a0
commit 038bcd2b13
2 changed files with 14 additions and 1 deletions

View File

@ -89,6 +89,14 @@ Now, load the module in ZNC:
/msg *status loadmod push
Note: the above command will only enable ZNC Push for a single network in ZNC. If instead
you would like to load ZNC Push as a "user level" module, so that you can share configuration
options across multiple networks, you will need to either use the web admin page for the
user to enable the "push" module, or you will need to use ZNC's "controlpanel" module:
/msg *status loadmod controlpanel
/msg *controlpanel loadmod push
Then select the push service you want to use, and set your username and secret as needed.
The secret is not your password, and can be obtained by logging into the service's website
and looking in your profile or settings:

View File

@ -1691,4 +1691,9 @@ void CPushSocket::Disconnected()
}
#endif // USE_CURL
MODULEDEFS(CPushMod, "Send highlights and personal messages to a push notification service")
template<> void TModInfo<CPushMod>(CModInfo& Info) {
Info.AddType(CModInfo::UserModule);
Info.SetWikiPage("push");
}
NETWORKMODULEDEFS(CPushMod, "Send highlights and personal messages to a push notification service")