Ablu/mana — comment on commit 2db357b61b8332d31483904bff9361ac688cbdba
File:  line 0
By Bertram25:

Hi,

Good question, indeed. For a better encapsulation, I'd suggest to make the chat class a friend of ChannelManager one.
This means that instead of removing the 'private:' statement, you can add:
'friend class Chat;' below it.
You might also have to add a 'class Chat;' on top of the file, too, or even play with the includes.

As for the rest of the code, I would just add: 'if (*it)', and 'if (it->second)' tests before chatLog() calls, because of my growing segfault paranoia. ;)

Once done, I suggest you log on and ask Freeyorp to make a test announcement on whatever server he wants.

Again, thanks a lot!!