Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hide current impl of server-time to znc.in/ namespace

The specs are going to change to support leap seconds properly,
so ZNC implementation will need to be updated.
But it would be too big change now, when 1.0-beta is out.

So support for this capability is delayed for 1.2
  • Loading branch information...
commit ed83ac632dc11a50d7635324f1d737b577952c9f 1 parent 33ba892
@DarthGandalf DarthGandalf authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Client.cpp
View
8 src/Client.cpp
@@ -816,7 +816,7 @@ void CClient::HandleCap(const CString& sLine)
for (SCString::iterator i = ssOfferCaps.begin(); i != ssOfferCaps.end(); ++i) {
sRes += *i + " ";
}
- RespondCap("LS :" + sRes + "userhost-in-names multi-prefix server-time");
+ RespondCap("LS :" + sRes + "userhost-in-names multi-prefix znc.in/server-time");
m_bInCap = true;
} else if (sSubCmd.Equals("END")) {
m_bInCap = false;
@@ -838,7 +838,7 @@ void CClient::HandleCap(const CString& sLine)
if (sCap.TrimPrefix("-"))
bVal = false;
- bool bAccepted = ("multi-prefix" == sCap) || ("userhost-in-names" == sCap) || ("server-time" == sCap);
+ bool bAccepted = ("multi-prefix" == sCap) || ("userhost-in-names" == sCap) || ("znc.in/server-time" == sCap);
GLOBALMODULECALL(IsClientCapSupported(this, sCap, bVal), &bAccepted);
if (!bAccepted) {
@@ -858,7 +858,7 @@ void CClient::HandleCap(const CString& sLine)
m_bNamesx = bVal;
} else if ("userhost-in-names" == *it) {
m_bUHNames = bVal;
- } else if ("server-time" == *it) {
+ } else if ("znc.in/server-time" == *it) {
m_bServerTime = bVal;
}
GLOBALMODULECALL(OnClientCapRequest(this, *it, bVal), NOTHING);
@@ -897,7 +897,7 @@ void CClient::HandleCap(const CString& sLine)
}
if (m_bServerTime) {
m_bServerTime = false;
- ssRemoved.insert("server-time");
+ ssRemoved.insert("znc.in/server-time");
}
CString sList = "";
for (SCString::iterator i = ssRemoved.begin(); i != ssRemoved.end(); ++i) {
Please sign in to comment.
Something went wrong with that request. Please try again.