[svn] - we do not need to call find_server() in the function for registering local users
This commit is contained in:
parent
cc32202d96
commit
0a61720ad4
3 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
|||
nenolod 2007/11/20 11:08:23 UTC (20071120-3584)
|
||||
Log:
|
||||
Explain invalid username rejections to users when they are rejected.
|
||||
|
||||
|
||||
Changes: Modified:
|
||||
+2 -0 trunk/src/s_user.c (File Modified)
|
||||
|
||||
|
||||
jilles 2007/11/17 21:55:48 UTC (20071117-3582)
|
||||
Log:
|
||||
Update description of oper privileges a bit.
|
||||
|
|
|
@ -1 +1 @@
|
|||
#define SERNO "20071117-3582"
|
||||
#define SERNO "20071120-3584"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
* USA
|
||||
*
|
||||
* $Id: s_user.c 3584 2007-11-20 11:08:23Z nenolod $
|
||||
* $Id: s_user.c 3586 2007-11-20 11:16:43Z nenolod $
|
||||
*/
|
||||
|
||||
#include "stdinc.h"
|
||||
|
@ -534,12 +534,13 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
|
|||
dlinkMoveNode(&source_p->localClient->tnode, &unknown_list, &lclient_list);
|
||||
SetClient(source_p);
|
||||
|
||||
/* XXX source_p->servptr is &me, since local client */
|
||||
source_p->servptr = find_server(NULL, user->server);
|
||||
source_p->servptr = &me;
|
||||
dlinkAdd(source_p, &source_p->lnode, &source_p->servptr->serv->users);
|
||||
|
||||
/* Increment our total user count here */
|
||||
if(++Count.total > Count.max_tot)
|
||||
Count.max_tot = Count.total;
|
||||
|
||||
source_p->localClient->allow_read = MAX_FLOOD_BURST;
|
||||
|
||||
Count.totalrestartcount++;
|
||||
|
|
Loading…
Reference in a new issue