mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
Call modules for /MODE done by not-in-channel nicks
When ChanServ ops someone in a channel without joining first, znc didn't call modules for this event, because it couldn't figure out a CNick* instance to use Instead, the module hooks are now executed with a temporary CNick instance which is created by CIRCSock anyway. Big thanks to Robby for reporting this and helping me test it! Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
+1
-1
@@ -500,7 +500,7 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
|
||||
CChan* pChan = m_pUser->FindChan(sTarget);
|
||||
if (pChan) {
|
||||
pChan->ModeChange(sModes, Nick.GetNick());
|
||||
pChan->ModeChange(sModes, &Nick);
|
||||
|
||||
if (pChan->IsDetached()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user