diff --git a/include/znc/IRCSock.h b/include/znc/IRCSock.h index 0d7caa60..2c47bade 100644 --- a/include/znc/IRCSock.h +++ b/include/znc/IRCSock.h @@ -105,6 +105,7 @@ public: bool HasAwayNotify() const { return m_bAwayNotify; } bool HasAccountNotify() const { return m_bAccountNotify; } bool HasExtendedJoin() const { return m_bExtendedJoin; } + bool HasServerTime() const { return m_bServerTime; } const std::set& GetUserModes() const { return m_scUserModes; } // This is true if we are past raw 001 bool IsAuthed() const { return m_bAuthed; } @@ -135,6 +136,7 @@ protected: bool m_bAwayNotify; bool m_bAccountNotify; bool m_bExtendedJoin; + bool m_bServerTime; CString m_sPerms; CString m_sPermModes; std::set m_scUserModes; diff --git a/src/IRCSock.cpp b/src/IRCSock.cpp index 77e0c391..f8e835b2 100644 --- a/src/IRCSock.cpp +++ b/src/IRCSock.cpp @@ -65,6 +65,7 @@ CIRCSock::CIRCSock(CIRCNetwork* pNetwork) m_bAwayNotify(false), m_bAccountNotify(false), m_bExtendedJoin(false), + m_bServerTime(false), m_sPerms("*!@%+"), m_sPermModes("qaohv"), m_scUserModes(), @@ -825,6 +826,8 @@ void CIRCSock::ReadLine(const CString& sData) { {"away-notify", [this](bool bVal) { m_bAwayNotify = bVal; }}, {"account-notify", [this](bool bVal) { m_bAccountNotify = bVal; }}, {"extended-join", [this](bool bVal) { m_bExtendedJoin = bVal; }}, + {"server-time", [this](bool bVal) { m_bServerTime = bVal; }}, + {"znc.in/server-time-iso", [this](bool bVal) { m_bServerTime = bVal; }}, }; if (sSubCmd == "LS") {