mirror of
https://github.com/znc/znc.git
synced 2026-05-08 22:34:45 +02:00
Add support for an optional user-specified quit message to the DISCONNECT command that would be used instead of the message specified in the config file.
Patch by reed! Thanks! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1926 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-2
@@ -63,8 +63,9 @@ CIRCSock::~CIRCSock() {
|
||||
GetUser()->AddBytesWritten(GetBytesWritten());
|
||||
}
|
||||
|
||||
void CIRCSock::Quit() {
|
||||
PutIRC("QUIT :" + m_pUser->GetQuitMsg());
|
||||
void CIRCSock::Quit(const CString& sQuitMsg) {
|
||||
CString sMsg = (!sQuitMsg.empty()) ? sQuitMsg : m_pUser->GetQuitMsg();
|
||||
PutIRC("QUIT :" + sMsg);
|
||||
Close(CLT_AFTERWRITE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user