diff options
Diffstat (limited to 'src/sessionManager.hpp')
| -rw-r--r-- | src/sessionManager.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sessionManager.hpp b/src/sessionManager.hpp index a0f4389..4ca3311 100644 --- a/src/sessionManager.hpp +++ b/src/sessionManager.hpp @@ -1,5 +1,6 @@ #pragma once +#include "chatManager.hpp" #include "format.hpp" #include "session.hpp" #include <memory> @@ -27,9 +28,10 @@ class CSessionManager { std::vector<std::shared_ptr<CSession>> getSessions() const; private: - void broadcastChat(const std::string &msg, const std::string &username) const; + void broadcastChat(const CChatManager::SMessage &msg) const; std::vector<std::pair<std::jthread, std::shared_ptr<CSession>>> m_vSessions; + friend class CChatManager; }; inline std::shared_ptr<CSessionManager> g_pSessionManager; |
