Quote:
Originally Posted by Argus
I have found bug in this plugins.
in badnames.txt:
url cs.superserver.com is fictitious.
I try name "cs.superserver.com" - plugin kicks me. thats ok.
I try name "123 cs.superserver.com" - plugin pass me! wtf??
so I started to check sourcecode.
I wrote in function "CheckName" some output code to check what is happened with nick:
and inside the "badnames" block this output:
and then I connect to server with name "123 cs.superserver.com" server console prints:
this means:
plugins lost 2 char of name between PrintToServer("6. &s", name); and PrintToServer("7. &s", name);
and inside the "badnames" block in trying to compare "123 cs.superserver.c" and "cs.superserver.com" - but thats names is different! so no kick.
the block between PrintToServer("6. &s", name); and PrintToServer("7. &s", name); is:
error in this code.
so I just swap this "error block code" and "badnames block" in sourcecod and after compiling:
if try name "123 cs.supe123rserver.com":
in attach fixed plugin.
|
Ok for others I use this on l4d2 and have it set to "deny" action as "kick" didnt work
This stops all player with set name not to even connect