mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Add OnJoining module hook.
This patch adds an OnJoining module hook that allows a module to allow or disallow joining any given channel.
This commit is contained in:
@@ -567,6 +567,11 @@ public:
|
||||
* @param sMessage The kick message.
|
||||
*/
|
||||
virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage);
|
||||
/** This module hook is called just before ZNC tries to join an IRC channel.
|
||||
* @param Chan The channel which is about to get joined.
|
||||
* @return See CModule::EModRet.
|
||||
*/
|
||||
virtual EModRet OnJoining(CChan& Channel);
|
||||
/** Called when a nick joins a channel.
|
||||
* @param Nick The nick who joined.
|
||||
* @param Channel The channel which was joined.
|
||||
@@ -1112,6 +1117,7 @@ public:
|
||||
bool OnQuit(const CNick& Nick, const CString& sMessage, const std::vector<CChan*>& vChans);
|
||||
bool OnNick(const CNick& Nick, const CString& sNewNick, const std::vector<CChan*>& vChans);
|
||||
bool OnKick(const CNick& Nick, const CString& sOpNick, CChan& Channel, const CString& sMessage);
|
||||
bool OnJoining(CChan& Channel);
|
||||
bool OnJoin(const CNick& Nick, CChan& Channel);
|
||||
bool OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage);
|
||||
bool OnInvite(const CNick& Nick, const CString& sChan);
|
||||
|
||||
Reference in New Issue
Block a user