![]() Aug 25 2010, 12:44 am
In response to NarutoBleach
|
|
Well, I added the things what you said, but the banned one can still login. This is what I got right now + the things I posted before, what Garthor asked for.
|
When you ban the player, they are disconnected, the info pops up, etc. Right?
After you ban the player, output each element in the BanList list. Are they all valid? When the player is banned, do they get any of the "you are banned" messages? Speaking of which, client/New should be changed slightly: the messages should be output to src, not usr. Also, the bans.len line just shouldn't be there at all (and the bans variable removed entirely, too). In client/New(), output the key and every value in the BanList list (to the world). Are there any matches? Is there any output at all? My guess is that you have a client/New() elsewhere which is interfering with this. |
I removed that bans.len line and the bans variable like you told me to do. Changed the output to src. And there is also no client/New() in all the other codes. Can you explain a bit more detailled? I would really appreciate that.
Thanks for all your help so far, and this is something I'm saying to everyone who helped me. |
Garthor wrote:
When you ban the player, they are disconnected, the info pops up, etc. Right? info(null,world,"[BanKey] has been banned.([reason] - [src])") After you ban the player, output each element in the BanList list. Are they all valid? proc The BanKey is added in the Banlist, because the proc is being called here: addban(BanKey,null) When the player is banned, do they get any of the "you are banned" messages? Speaking of which, client/New should be changed slightly: the messages should be output to src, not usr. Also, the bans.len line just shouldn't be there at all (and the bans variable removed entirely, too).When they login, they don't get any messages and they can still play the game. In client/New(), output the key and every value in the BanList list (to the world). Are there any matches? Is there any output at all?I'm not sure what you mean by that, if you can explain some more, I'll probably understand. |
In client/New(), do this:
world << "MY KEY IS [key]" Additionally, saying "The BanKey is added in the Banlist, because the proc is being called here:" is completely totally not what I meant. Stop making assumptions. Actually DIRECTLY CHECK whether what you think is being done is ACTUALLY being done. That's how you find bugs. This means OUTPUTTING THE CONTENTS OF THE LIST, not saying "oh well it says it's calling the proc so clearly everything is working!" |
You have a client/New() elsewhere which is not calling ..() and is therefore blocking your current version from being called.
|
I don't got any other Client/New() in any of my file unless in one which is not included but that one is also calling ..()
|
Okay, all the client/New() I've found are calling ..() .
Still, those messages which are outputted to the world don't show up. |