summaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/session.cpp b/src/session.cpp
index 50eaff4..10c549b 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -127,7 +127,7 @@ void CSession::run() {
} else
log(LOG, "Client {} exited without even registering", m_ip);
- g_pSessionManager->removeSession(self);
+ g_pSessionManager->kick(self);
}
bool CSession::registerSession() {
@@ -205,9 +205,3 @@ const std::string &CSession::getName() const {
void CSession::setSelf(std::pair<std::jthread, std::shared_ptr<CSession>> *self) {
this->self = self;
}
-
-void CSession::onKick(const std::string &reason, const bool &kill) {
- if (!reason.empty())
- write(reason);
- g_pSessionManager->removeSession(self, kill);
-}