Quote Originally Posted by voron00 View Post
You have to wait a little bit before freeing slot or just use libcod from my repo, has an autofreeslot for bots so you can just normally kick it. Also your isBot definiton seems wrong, just use:
PHP Code:
isBot()
{
    return 
self getAddressType() == 0;
}

if (
self isBot())
{
    
bla bla...

1 - I tried using getAddressType() but my version of libcod is a little old so, whenever I'm not using .isbot I'm using getIP() == 0.
.isbot works well because it is defined when the test client is added;
2 - Are you serious??? All I had to do was to add a wait before freeing the slot??? I wasted hours last night trying to figure this out, testing and testing and testing, before writing everything in details... lol

Thanks