mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix the OnKick() module call
This call works exactly as it did before (well, it no longer creates a temporary CNick instance), but it's documentation now also describes its current behavior. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1737 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -507,7 +507,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
|
||||
if (pChan) {
|
||||
pChan->RemNick(sKickedNick);
|
||||
MODULECALL(OnKick(Nick.GetNickMask(), sKickedNick, *pChan, sMsg), m_pUser, NULL, );
|
||||
MODULECALL(OnKick(Nick, sKickedNick, *pChan, sMsg), m_pUser, NULL, );
|
||||
}
|
||||
|
||||
if (GetNick().Equals(sKickedNick) && pChan) {
|
||||
|
||||
@@ -381,12 +381,12 @@ public:
|
||||
*/
|
||||
virtual void OnNick(const CNick& Nick, const CString& sNewNick, const vector<CChan*>& vChans);
|
||||
/** Called when a nick is kicked from a channel.
|
||||
* @param Nick The nick which is kicked.
|
||||
* @param sOpNick The nick which generated the kick.
|
||||
* @param OpNick The nick which generated the kick.
|
||||
* @param sKickedNick The nick which was kicked.
|
||||
* @param Channel The channel on which this kick occurs.
|
||||
* @param sMessage The kick message.
|
||||
*/
|
||||
virtual void OnKick(const CNick& Nick, const CString& sOpNick, CChan& Channel, const CString& sMessage);
|
||||
virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage);
|
||||
/** Called when a nick joins a channel.
|
||||
* @param Nick The nick who joined.
|
||||
* @param Channel The channel which was joined.
|
||||
|
||||
Reference in New Issue
Block a user