mirror of
https://github.com/znc/znc.git
synced 2026-08-03 23:43:42 +02:00
Added VersionReply config option
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@167 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+12
-2
@@ -613,8 +613,18 @@ bool CIRCSock::OnPrivCTCP(const string& sNickMask, string& sMessage) {
|
||||
}
|
||||
#endif
|
||||
|
||||
// DCC CHAT chat 2453612361 44592
|
||||
if (strncasecmp(sMessage.c_str(), "DCC ", 4) == 0) {
|
||||
if (strcasecmp(sMessage.c_str(), "VERSION") == 0) {
|
||||
if (!IsUserAttached()) {
|
||||
string sVersionReply = m_pUser->GetVersionReply();
|
||||
|
||||
if (sVersionReply.empty()) {
|
||||
sVersionReply = "ZNC by prozac - http://znc.sourceforge.net";
|
||||
}
|
||||
|
||||
PutServ("NOTICE " + CNick(sNickMask).GetNick() + " :\001VERSION " + sVersionReply + "\001");
|
||||
}
|
||||
} else if (strncasecmp(sMessage.c_str(), "DCC ", 4) == 0) {
|
||||
// DCC CHAT chat 2453612361 44592
|
||||
string sType = CUtils::Token(sMessage, 1);
|
||||
string sFile = CUtils::Token(sMessage, 2);
|
||||
unsigned long uLongIP = strtoul(CUtils::Token(sMessage, 3).c_str(), NULL, 10);
|
||||
|
||||
Reference in New Issue
Block a user