mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add OnUserQuit() callback. On smartphone, user doesn't want to see same lines repeatedly. But, meanwhile, user doesn't want to miss lines when connection was lost. To do it, this uses OnUserQuit() callback. With this callback, clearbufferonmsg can clear buffer if user quited client explicitly. And when connection was lost, buffer is still not cleared.
83 lines
4.7 KiB
Plaintext
83 lines
4.7 KiB
Plaintext
bool OnBoot()=true
|
|
bool WebRequiresLogin()=true
|
|
bool WebRequiresAdmin()=false
|
|
CString GetWebMenuTitle()
|
|
bool OnWebPreRequest(CWebSock& WebSock, const CString& sPageName)=false
|
|
bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl)=false
|
|
VWebSubPages* _GetSubPages()
|
|
void OnPreRehash()
|
|
void OnPostRehash()
|
|
void OnIRCDisconnected()
|
|
void OnIRCConnected()
|
|
EModRet OnIRCConnecting(CIRCSock *pIRCSock)
|
|
void OnIRCConnectionError(CIRCSock *pIRCSock)
|
|
EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName)
|
|
EModRet OnBroadcast(CString& sMessage)
|
|
void OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange)
|
|
void OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange)
|
|
void OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange)
|
|
void OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange)
|
|
void OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange)
|
|
void OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange)
|
|
void OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs)
|
|
EModRet OnRaw(CString& sLine)
|
|
EModRet OnStatusCommand(CString& sCommand)
|
|
void OnModCommand(const CString& sCommand)
|
|
void OnModNotice(const CString& sMessage)
|
|
void OnModCTCP(const CString& sMessage)
|
|
void OnQuit(const CNick& Nick, const CString& sMessage, const vector<CChan*>& vChans)
|
|
void OnNick(const CNick& Nick, const CString& sNewNick, const vector<CChan*>& vChans)
|
|
void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage)
|
|
EModRet OnJoining(CChan& Channel)
|
|
void OnJoin(const CNick& Nick, CChan& Channel)
|
|
void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage)
|
|
EModRet OnChanBufferStarting(CChan& Chan, CClient& Client)
|
|
EModRet OnChanBufferEnding(CChan& Chan, CClient& Client)
|
|
EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine)
|
|
EModRet OnPrivBufferPlayLine(CClient& Client, CString& sLine)
|
|
void OnClientLogin()
|
|
void OnClientDisconnect()
|
|
EModRet OnUserRaw(CString& sLine)
|
|
EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage)
|
|
EModRet OnUserCTCP(CString& sTarget, CString& sMessage)
|
|
EModRet OnUserAction(CString& sTarget, CString& sMessage)
|
|
EModRet OnUserMsg(CString& sTarget, CString& sMessage)
|
|
EModRet OnUserNotice(CString& sTarget, CString& sMessage)
|
|
EModRet OnUserJoin(CString& sChannel, CString& sKey)
|
|
EModRet OnUserPart(CString& sChannel, CString& sMessage)
|
|
EModRet OnUserTopic(CString& sChannel, CString& sTopic)
|
|
EModRet OnUserTopicRequest(CString& sChannel)
|
|
void OnUserQuit(CString& sMessage)
|
|
EModRet OnCTCPReply(CNick& Nick, CString& sMessage)
|
|
EModRet OnPrivCTCP(CNick& Nick, CString& sMessage)
|
|
EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage)
|
|
EModRet OnPrivAction(CNick& Nick, CString& sMessage)
|
|
EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage)
|
|
EModRet OnPrivMsg(CNick& Nick, CString& sMessage)
|
|
EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage)
|
|
EModRet OnPrivNotice(CNick& Nick, CString& sMessage)
|
|
EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage)
|
|
EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic)
|
|
bool OnServerCapAvailable(const CString& sCap)=false
|
|
void OnServerCapResult(const CString& sCap, bool bSuccess)
|
|
EModRet OnTimerAutoJoin(CChan& Channel)
|
|
bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl)=false
|
|
EModRet OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet)
|
|
EModRet OnDeleteNetwork(CIRCNetwork& Network)
|
|
EModRet OnSendToClient(CString& sLine, CClient& Client)
|
|
EModRet OnSendToIRC(CString& sLine)
|
|
|
|
EModRet OnAddUser(CUser& User, CString& sErrorRet)
|
|
EModRet OnDeleteUser(CUser& User)
|
|
void OnClientConnect(CZNCSock* pSock, const CString& sHost, unsigned short uPort)
|
|
void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP)
|
|
EModRet OnUnknownUserRaw(CClient* pClient, CString& sLine)
|
|
bool IsClientCapSupported(CClient* pClient, const CString& sCap, bool bState)=false
|
|
void OnClientCapRequest(CClient* pClient, const CString& sCap, bool bState)
|
|
EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg)
|
|
EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg)
|
|
EModRet OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg)
|
|
void OnGetAvailableMods(std::set<CModInfo>& ssMods, CModInfo::EModuleType eType)
|
|
void OnClientCapLs(CClient* pClient, SCString& ssCaps)
|
|
EModRet OnLoginAttempt(std::shared_ptr<CAuthBase> Auth)
|