colloquypush
colloquypush copied to clipboard
Fails to compile on ZNC 1.6.3
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"
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.