Lua: Kick properly (with ClientKick), add chat message printing

This commit is contained in:
Lion Kortlepel
2021-10-02 01:28:58 +02:00
parent af14188ec0
commit d027f7f29f
4 changed files with 5 additions and 7 deletions

View File

@@ -458,6 +458,7 @@ void TNetwork::ClientKick(TClient& c, const std::string& R) {
if (c.GetDownSock())
CloseSocketProper(c.GetDownSock());
}
void TNetwork::Looper(const std::weak_ptr<TClient>& c) {
while (!c.expired()) {
auto Client = c.lock();