colloquypush icon indicating copy to clipboard operation
colloquypush copied to clipboard

Fails to compile on ZNC 1.6.3

Open Gerbyte opened this issue 9 years ago • 1 comments

znc-buildmod colloquy.cpp
Building "colloquy.so" for ZNC 1.6.3... colloquy.cpp: In member function ‘bool CColloquyMod::Push(const CString&, const CString&, const CString&, bool, int)’:
colloquy.cpp:778:58: error: invalid initialization of reference of type ‘std::vector<CClient*>&’ from expression of type ‘const std::vector<CClient*>’
vector<CClient*>& vpClients = GetNetwork()->GetClients(); 25,381 Alles ^ [ !! ] Error while building "colloquy.so"

Gerbyte avatar Sep 10 '16 07:09 Gerbyte

Change the line to read:

const vector<CClient*> vpClients = GetNetwork()->GetClients();

That allows me to compile, load, and use the module on ZNC v1.6.3.

craigcabrey avatar Nov 02 '16 03:11 craigcabrey