mirror of https://github.com/SeanOMik/znc-push.git
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:
parent
e0e6ad28a0
commit
038bcd2b13
|
@ -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:
|
||||
|
|
7
push.cpp
7
push.cpp
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue