17.07.2011, 04:41
It's only happening on my ban coding.
When a player connects, first it checks if they're on an exception list, then it checks if they're namebanned, then range banned, then IP banned. All of those are checked in threaded queries, the problem is that the player who gets banned doesn't receive a ban message via SendClientMessage. They join then it says shows for them "Server has closed connection."
I tried delaying the actual kick from the server by using SetTimerEx, but the strings kept getting messed up in Linux.
Before I threaded the queries, it worked fine, but i noticed the server would hang if two joined together, now that doesn't happen.
When a player connects, first it checks if they're on an exception list, then it checks if they're namebanned, then range banned, then IP banned. All of those are checked in threaded queries, the problem is that the player who gets banned doesn't receive a ban message via SendClientMessage. They join then it says shows for them "Server has closed connection."
I tried delaying the actual kick from the server by using SetTimerEx, but the strings kept getting messed up in Linux.
Before I threaded the queries, it worked fine, but i noticed the server would hang if two joined together, now that doesn't happen.