log: Use suggested changes.

Co-authored-by: Alexey Sokolov <alexey+github@asokolov.org>
This commit is contained in:
KindOne
2025-06-19 17:30:58 -04:00
committed by GitHub
parent 79491ad2af
commit cd8587ddba

View File

@@ -464,12 +464,8 @@ CModule::EModRet CLogMod::OnSendToIRCMessage(CMessage& Message) {
CIRCNetwork* pNetwork = Message.GetNetwork();
CQuitMessage& QuitMsg = Message.As<CQuitMessage>();
// Log our quit message first
QuitMsg.SetNick(pNetwork->GetIRCNick());
LogQuitHelper(QuitMsg.GetNick(), QuitMsg.GetReason(), pNetwork->GetChans());
LogQuitHelper(pNetwork->GetIRCNick(), QuitMsg.GetReason(), pNetwork->GetChans());
// Strip :nick!ident@host and only send "QUIT :reason"
QuitMsg.SetNick(CNick{});
return CONTINUE;
}