]> jfr.im git - irc/evilnet/znc.git/commitdiff
Fix OnInvite in modpython and modperl.
authorAlexey Sokolov <redacted>
Sun, 31 Jul 2016 09:35:19 +0000 (10:35 +0100)
committerAlexey Sokolov <redacted>
Sun, 31 Jul 2016 09:35:19 +0000 (10:35 +0100)
They were silently not called.

Close #1283

modules/modperl/functions.in
modules/modperl/module.h
modules/modpython/functions.in
modules/modpython/module.h

index 64ed0b41278fd90e69c773617e798bcdfefc8613..ef076de193242b4939205491342a6fb2f347ec73 100644 (file)
@@ -31,6 +31,7 @@ void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, con
 EModRet OnJoining(CChan& Channel)
 void OnJoin(const CNick& Nick, CChan& Channel)
 void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage)
+EModRet OnInvite(const CNick& Nick, const CString& sChan)
 EModRet OnChanBufferStarting(CChan& Chan, CClient& Client)
 EModRet OnChanBufferEnding(CChan& Chan, CClient& Client)
 EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine)
index 285747082e747317c06fbb830256e474d2d08b96..1da1b351d0c22480830047156651c71b56acb46c 100644 (file)
@@ -71,6 +71,7 @@ public:
        virtual EModRet OnJoining(CChan& Channel) override;
        virtual void OnJoin(const CNick& Nick, CChan& Channel) override;
        virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override;
+       virtual EModRet OnInvite(const CNick& Nick, const CString& sChan) override;
        virtual EModRet OnChanBufferStarting(CChan& Chan, CClient& Client) override;
        virtual EModRet OnChanBufferEnding(CChan& Chan, CClient& Client) override;
        virtual EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) override;
index 5bf893d29538b70fc7e3a5442d758356ded3488a..1f7f9ce185f025a440fffb1b65b18b8d397e5295 100644 (file)
@@ -31,6 +31,7 @@ void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, con
 EModRet OnJoining(CChan& Channel)
 void OnJoin(const CNick& Nick, CChan& Channel)
 void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage)
+EModRet OnInvite(const CNick& Nick, const CString& sChan)
 EModRet OnChanBufferStarting(CChan& Chan, CClient& Client)
 EModRet OnChanBufferEnding(CChan& Chan, CClient& Client)
 EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine)
index 97ed823084702522e1e51da00b308dad38dda999..2e95659bcdb1f33dac1a6be6d34bd19decc820ce 100644 (file)
@@ -87,6 +87,7 @@ public:
        virtual EModRet OnJoining(CChan& Channel) override;
        virtual void OnJoin(const CNick& Nick, CChan& Channel) override;
        virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override;
+       virtual EModRet OnInvite(const CNick& Nick, const CString& sChan) override;
        virtual EModRet OnChanBufferStarting(CChan& Chan, CClient& Client) override;
        virtual EModRet OnChanBufferEnding(CChan& Chan, CClient& Client) override;
        virtual EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) override;