wired / colloquypush

Modules for irc clients and bouncers that add Push support to Colloquy Mobile
http://colloquy.mobi/
103 stars 31 forks source link

Fails to compile on ZNC 1.6.3 #53

Open Gerbyte opened 8 years ago

Gerbyte commented 8 years ago

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"

craigcabrey commented 8 years ago

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.