mirror of
https://github.com/znc/znc.git
synced 2026-07-05 09:21:31 +02:00
Make it possible to use ExpandString-stuff in QuitMsg
You can now use "Uptime: %uptime%" as your quit message, yay! Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
+5
-2
@@ -76,8 +76,11 @@ void CIRCSock::Quit(const CString& sQuitMsg) {
|
||||
Close(CLT_NOW);
|
||||
return;
|
||||
}
|
||||
CString sMsg = (!sQuitMsg.empty()) ? sQuitMsg : m_pUser->GetQuitMsg();
|
||||
PutIRC("QUIT :" + sMsg);
|
||||
if (!sQuitMsg.empty()) {
|
||||
PutIRC("QUIT :" + sQuitMsg);
|
||||
} else {
|
||||
PutIRC("QUIT :" + m_pUser->ExpandString(m_pUser->GetQuitMsg()));
|
||||
}
|
||||
Close(CLT_AFTERWRITE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user