mirror of
https://github.com/znc/znc.git
synced 2026-05-18 07:15:54 +02:00
Patched using modified answer_pings_and_stuff.patch by psycho
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@763 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+11
-5
@@ -666,15 +666,21 @@ bool CIRCSock::OnPrivCTCP(CNick& Nick, CString& sMessage) {
|
||||
CString sQuery = sMessage.Token(0).AsUpper();
|
||||
CString sReply;
|
||||
|
||||
if (it == mssCTCPReplies.end()) {
|
||||
it = mssCTCPReplies.find(sQuery);
|
||||
}
|
||||
|
||||
if (it != mssCTCPReplies.end()) {
|
||||
sReply = it->second;
|
||||
}
|
||||
|
||||
if (sReply.empty() && sQuery == "VERSION" && !m_pUser->IsUserAttached()) {
|
||||
sReply = "ZNC by prozac - http://znc.sourceforge.net";
|
||||
}
|
||||
|
||||
if (!sReply.empty()) {
|
||||
if (sReply.empty() && !m_pUser->IsUserAttached()) {
|
||||
if (sQuery == "VERSION") {
|
||||
sReply = "ZNC by prozac - http://znc.sourceforge.net";
|
||||
} else if (sQuery == "PING") {
|
||||
sReply = sMessage.Token(1, true);
|
||||
}
|
||||
} else if (!sReply.empty()) {
|
||||
PutIRC("NOTICE " + Nick.GetNick() + " :\001" + sQuery + " " + sReply + "\001");
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user