summaryrefslogtreecommitdiff
path: root/src/sessionManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessionManager.cpp')
-rw-r--r--src/sessionManager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sessionManager.cpp b/src/sessionManager.cpp
index a7490e3..049ec2b 100644
--- a/src/sessionManager.cpp
+++ b/src/sessionManager.cpp
@@ -38,9 +38,9 @@ void CSessionManager::run() {
newSession();
}
-void CSessionManager::broadcast(eFormatType type, const std::string &msg) const {
+void CSessionManager::broadcast(const std::string &msg) const {
for (const auto &[thread, session] : m_vSessions)
- session->write(msg, type);
+ session->write(msg);
}
void CSessionManager::broadcastChat(const std::string &msg, const std::string &username) const {
@@ -49,7 +49,7 @@ void CSessionManager::broadcastChat(const std::string &msg, const std::string &u
continue;
auto name = session->getName();
if (name != username)
- session->write(msg, NONE);
+ session->write(msg);
}
}
@@ -66,4 +66,5 @@ void CSessionManager::removeSession(std::pair<std::jthread, std::shared_ptr<CSes
it->second.reset();
m_vSessions.erase(it);
}
+
}