Skip to content

Instantly share code, notes, and snippets.

@fhats
Created December 30, 2014 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhats/6b901d8cad2b7ce9329b to your computer and use it in GitHub Desktop.
Save fhats/6b901d8cad2b7ce9329b to your computer and use it in GitHub Desktop.
$ znc-buildmod clientbuffer.cpp
Building "clientbuffer.so" for ZNC 1.4... clientbuffer.cpp:33:44: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual EModRet OnUserRaw(CString& line) override;
^
clientbuffer.cpp:34:66: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual EModRet OnSendToClient(CString& line, CClient& client) override;
^
clientbuffer.cpp:36:70: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual EModRet OnChanBufferStarting(CChan& chan, CClient& client) override;
^
clientbuffer.cpp:37:68: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual EModRet OnChanBufferEnding(CChan& chan, CClient& client) override;
^
clientbuffer.cpp:38:105: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual EModRet OnChanBufferPlayLine2(CChan& chan, CClient& client, CString& line, const timeval& tv) override;
^
clientbuffer.cpp:39:92: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11 [enabled by default]
virtual EModRet OnPrivBufferPlayLine2(CClient& client, CString& line, const timeval& tv) override;
^
clientbuffer.cpp:34:21: error: ‘virtual CModule::EModRet CClientBufferMod::OnSendToClient(CString&, CClient&)’ marked override, but does not override
virtual EModRet OnSendToClient(CString& line, CClient& client) override;
^
clientbuffer.cpp:38:21: error: ‘virtual CModule::EModRet CClientBufferMod::OnChanBufferPlayLine2(CChan&, CClient&, CString&, const timeval&)’ marked override, but does not override
virtual EModRet OnChanBufferPlayLine2(CChan& chan, CClient& client, CString& line, const timeval& tv) override;
^
clientbuffer.cpp:39:21: error: ‘virtual CModule::EModRet CClientBufferMod::OnPrivBufferPlayLine2(CClient&, CString&, const timeval&)’ marked override, but does not override
virtual EModRet OnPrivBufferPlayLine2(CClient& client, CString& line, const timeval& tv) override;
^
clientbuffer.cpp: In member function ‘void CClientBufferMod::OnListClientsCommand(const CString&)’:
clientbuffer.cpp:86:43: error: ‘class CClient’ has no member named ‘GetIdentifier’
const CString& current = GetClient()->GetIdentifier();
^
clientbuffer.cpp:93:23: error: ‘const class CString’ has no member named ‘Find’
if (it->first.Find("/") == CString::npos) {
^
clientbuffer.cpp:99:63: error: ‘class CIRCNetwork’ has no member named ‘FindClients’
table.SetCell("Connected", CString(!GetNetwork()->FindClients(it->first).empty()));
^
clientbuffer.cpp: In member function ‘virtual CModule::EModRet CClientBufferMod::OnChanBufferStarting(CChan&, CClient&)’:
clientbuffer.cpp:141:40: error: ‘class CClient’ has no member named ‘GetIdentifier’
const CString& identifier = client.GetIdentifier();
^
clientbuffer.cpp: In member function ‘virtual CModule::EModRet CClientBufferMod::OnChanBufferEnding(CChan&, CClient&)’:
clientbuffer.cpp:156:40: error: ‘class CClient’ has no member named ‘GetIdentifier’
const CString& identifier = client.GetIdentifier();
^
clientbuffer.cpp: In member function ‘virtual CModule::EModRet CClientBufferMod::OnChanBufferPlayLine2(CChan&, CClient&, CString&, const timeval&)’:
clientbuffer.cpp:168:40: error: ‘class CClient’ has no member named ‘GetIdentifier’
const CString& identifier = client.GetIdentifier();
^
clientbuffer.cpp: In member function ‘virtual CModule::EModRet CClientBufferMod::OnPrivBufferPlayLine2(CClient&, CString&, const timeval&)’:
clientbuffer.cpp:176:40: error: ‘class CClient’ has no member named ‘GetIdentifier’
const CString& identifier = client.GetIdentifier();
^
clientbuffer.cpp: In member function ‘bool CClientBufferMod::DelClient(const CString&)’:
clientbuffer.cpp:199:31: error: range-based ‘for’ loops are not allowed in C++98 mode
for (const CString& key : keys)
^
clientbuffer.cpp: In member function ‘bool CClientBufferMod::ParseMessage(const CString&, CNick&, CString&, CString&) const’:
clientbuffer.cpp:213:13: error: ‘class CString’ has no member named ‘StartsWith’
if (msg.StartsWith("@"))
^
clientbuffer.cpp:217:13: error: ‘class CString’ has no member named ‘StartsWith’
if (msg.StartsWith(":")) {
^
clientbuffer.cpp: In member function ‘void CClientBufferMod::UpdateTimestamp(const CClient*, const CString&)’:
clientbuffer.cpp:272:28: error: ‘const class CClient’ has no member named ‘IsPlaybackActive’
if (client && !client->IsPlaybackActive()) {
^
clientbuffer.cpp:273:45: error: ‘const class CClient’ has no member named ‘GetIdentifier’
const CString& identifier = client->GetIdentifier();
^
[ !! ] Error while building "clientbuffer.so"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment