Raised This Month: $ Target: $400
 0% 

Case sensitivity ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheNTW
Member
Join Date: Jun 2007
Old 04-02-2009 , 11:31   Case sensitivity ?
Reply With Quote #1

Hello,
I think this should be a common problem. Registered names in my server are ok, until a letters case is changed.
For instance if a player has a registered nick "Player" still a guy named "player" can connect w/o password...
How to disable this ?
TheNTW is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-02-2009 , 11:39   Re: Case sensitivity ?
Reply With Quote #2

Quote:
Originally Posted by TheNTW View Post
Hello,
I think this should be a common problem. Registered names in my server are ok, until a letters case is changed.
For instance if a player has a registered nick "Player" still a guy named "player" can connect w/o password...
How to disable this ?
What amxx version are you using?
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-02-2009 , 12:16   Re: Case sensitivity ?
Reply With Quote #3

In the latest amxx version in users.ini:
Quote:
; Account flags:
; a - disconnect player on invalid password
; b - clan tag
; c - this is steamid/wonid
; d - this is ip
; e - password is not checked (only name/ip/steamid needed)
; k - name or tag is case sensitive. eg: if you set it so the name "Ham"
; is protected and case sensitive (flags "k" only), then anybody
; can use the names "haM", "HAM", "ham", etc, but not "Ham"
So by default (without "k" flag) the users are not case-sensitive.

You must be using older amxx version or the "k" flag.
__________________
Hunter-Digital is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 04-02-2009 , 12:46   Re: Case sensitivity ?
Reply With Quote #4

I think this belongs to Support forum.
__________________

anakin_cstrike is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-02-2009 , 14:35   Re: Case sensitivity ?
Reply With Quote #5

Quote:
Originally Posted by Hunter-Digital View Post
In the latest amxx version in users.ini:


So by default (without "k" flag) the users are not case-sensitive.

You must be using older amxx version or the "k" flag.
You will have this flag in amxx 1.80 and above.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
TheNTW
Member
Join Date: Jun 2007
Old 04-03-2009 , 08:10   Re: Case sensitivity ?
Reply With Quote #6

Amx Version:
AMX Mod X 1.8.1.3746 (http://www.amxmodx.org


And no, not using K flag.

Last edited by TheNTW; 04-03-2009 at 08:23.
TheNTW is offline
TheNTW
Member
Join Date: Jun 2007
Old 04-08-2009 , 04:55   Re: Case sensitivity ?
Reply With Quote #7

A little little *bump*
TheNTW is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-08-2009 , 15:51   Re: Case sensitivity ?
Reply With Quote #8

somewhere in admin.sma from amxx 1.8+
PHP Code:
            if (Flags FLAG_CASE_SENSITIVE)
            {
                if (
Flags FLAG_TAG)
                {
                    if (
contain(nameAuthData) != -1)
                    {
                        
index i
                        g_CaseSensitiveName
[id] = true
                        
break
                    }
                }
                else if (
equal(nameAuthData))
                {
                    
index i
                    g_CaseSensitiveName
[id] = true
                    
break
                }
            }
            else
            {
                if (
Flags FLAG_TAG)
                {
                    if (
containi(nameAuthData) != -1)
                    {
                        
index i
                        
break
                    }
                }
                else if (
equali(nameAuthData))
                {
                    
index i
                    
break
                }
            } 
replace with

PHP Code:
            if (Flags FLAG_TAG)
            {
                if (
containi(nameAuthData) != -1)
                {
                    
index i
                    
break
                }
            }
            else if (
equali(nameAuthData))
            {
                
index i
                
break
            } 
... skips and disables the "k" flag forever... make a backup first :}

if THIS doesn't work either... I don't know WHAT are you doing there
__________________
Hunter-Digital is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 04-09-2009 , 08:49   Re: Case sensitivity ?
Reply With Quote #9

equali() should work, if not - problem is in your amxx
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
TheNTW
Member
Join Date: Jun 2007
Old 04-18-2009 , 07:28   Re: Case sensitivity ?
Reply With Quote #10

Will try equali()

Coul the problem be caused by ultimate_rslot ?
TheNTW is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode