Bugfix: when using sqlite and registering a nick with length longer or equal to max_newnick_len, it may have succeeded even if such a nick already existed.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@590 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
11dfabda89
commit
9fc78de52e
6
TODO
6
TODO
|
@ -1,3 +1,9 @@
|
|||
%t format variable: path+filename of the finished ttyrec, in postcommands
|
||||
|
||||
|
||||
< kerio> paxed: it would also be cool to have %g and %s work within a game definition too
|
||||
|
||||
< kerio> paxed: is this intended behavior? i can't set two different spooldirs for two different games
|
||||
|
||||
|
||||
[22:45] < kerio> paxed: dgamelaunch bug! :D - you *need* a file called dgamelaunch in the root of the jail -
|
||||
|
|
|
@ -1906,6 +1906,8 @@ userexist (char *cname, int isnew)
|
|||
char *qbuf;
|
||||
|
||||
char tmpbuf[DGL_PLAYERNAMELEN+2];
|
||||
|
||||
memset(tmpbuf, 0, DGL_PLAYERNAMELEN+2);
|
||||
strncpy(tmpbuf, cname, (isnew ? globalconfig.max_newnick_len : DGL_PLAYERNAMELEN));
|
||||
|
||||
/* Check that the nick doesn't interfere with already registered nicks */
|
||||
|
|
Loading…
Reference in New Issue