Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile on ZNC 1.6.3 #53

Open
Gerbyte opened this issue Sep 10, 2016 · 1 comment
Open

Fails to compile on ZNC 1.6.3 #53

Gerbyte opened this issue Sep 10, 2016 · 1 comment

Comments

@Gerbyte
Copy link

Gerbyte commented Sep 10, 2016

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants