Teach modperl and modpython about CMessage and new hooks which accept it.

Fix #1084
Fix #1085
This commit is contained in:
Alexey Sokolov
2015-11-22 23:38:04 +00:00
parent 11b19a63f1
commit cbf5c38d0a
9 changed files with 525 additions and 0 deletions

View File

@@ -67,11 +67,42 @@ EModRet OnDeleteNetwork(CIRCNetwork& Network)
EModRet OnSendToClient(CString& sLine, CClient& Client)
EModRet OnSendToIRC(CString& sLine)
EModRet OnRawMessage(CMessage& Message)
EModRet OnNumericMessage(CNumericMessage& Message)
void OnQuitMessage(CQuitMessage& Message, const std::vector<CChan*>& vChans)
void OnNickMessage(CNickMessage& Message, const std::vector<CChan*>& vChans)
void OnKickMessage(CKickMessage& Message)
void OnJoinMessage(CJoinMessage& Message)
void OnPartMessage(CPartMessage& Message)
EModRet OnChanBufferPlayMessage(CMessage& Message)
EModRet OnPrivBufferPlayMessage(CMessage& Message)
EModRet OnUserRawMessage(CMessage& Message)
EModRet OnUserCTCPReplyMessage(CCTCPMessage& Message)
EModRet OnUserCTCPMessage(CCTCPMessage& Message)
EModRet OnUserActionMessage(CActionMessage& Message)
EModRet OnUserTextMessage(CTextMessage& Message)
EModRet OnUserNoticeMessage(CNoticeMessage& Message)
EModRet OnUserJoinMessage(CJoinMessage& Message)
EModRet OnUserPartMessage(CPartMessage& Message)
EModRet OnUserTopicMessage(CTopicMessage& Message)
EModRet OnUserQuitMessage(CQuitMessage& Message)
EModRet OnCTCPReplyMessage(CCTCPMessage& Message)
EModRet OnPrivCTCPMessage(CCTCPMessage& Message)
EModRet OnChanCTCPMessage(CCTCPMessage& Message)
EModRet OnPrivActionMessage(CActionMessage& Message)
EModRet OnChanActionMessage(CActionMessage& Message)
EModRet OnPrivMessage(CTextMessage& Message)
EModRet OnChanMessage(CTextMessage& Message)
EModRet OnPrivNoticeMessage(CNoticeMessage& Message)
EModRet OnChanNoticeMessage(CNoticeMessage& Message)
EModRet OnTopicMessage(CTopicMessage& Message)
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)
EModRet OnUnknownUserRawMessage(CMessage& Message)
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)