]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/tcpclient.cpp
Fixed a bug in check_idles() in tcpclient.cpp causing is_playing(0x0) to be called...
[irc/gameservirc.git] / gameserv / tcpclient.cpp
index b4a9c81ed7e9860ce91054e936ed3bb4b2800997..4832cad691cac04fe80650a3ea40fdf24bf03a68 100644 (file)
@@ -709,7 +709,7 @@ void check_idles()
                case 1:
                if ((time(NULL) - p->lastlogin) / 86400 >= level1expire)
                {
-                   logout(p->client);
+                   logout(newPtr->getData());
                    players[x].remove(newPtr->getData());
                    return;
                }
@@ -718,7 +718,7 @@ void check_idles()
                default:
                if ((time(NULL) - p->lastlogin) / 86400 >= defaultexpire)
                {
-                   logout(p->client);
+                   logout(newPtr->getData());
                    players[x].remove(newPtr->getData());
                    return;
                }