~ubuntu-branches/debian/sid/ircd-hybrid/sid

« back to all changes in this revision

Viewing changes to modules/m_user.c

  • Committer: Package Import Robot
  • Author(s): Dominic Hargreaves
  • Date: 2015-04-19 15:53:09 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20150419155309-06y59x2at2ax5ou3
Tags: 1:8.2.7+dfsg.1-1
* Remove Suggests: hybserv since it doesn't really work with
  ircd-hybrid 8 and above
* New upstream release
  - update debian/copyright with minor changes
  - update config files from new reference.conf
  - fixes DoS from localhost clients (Closes: #782859)
  - supports SSL certficate chaining (Closes: #769741)
* Debconf configuration script no longer ignores the result of
  upgrade questions (Closes: #779082)
* Don't display upgrade warnings on new installs (Closes: #782883)
* Add NEWS item about updated configuration

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3
3
 *
4
 
 *  Copyright (c) 1997-2014 ircd-hybrid development team
 
4
 *  Copyright (c) 1997-2015 ircd-hybrid development team
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
 
22
22
/*! \file m_user.c
23
23
 * \brief Includes required functions for processing the USER command.
24
 
 * \version $Id: m_user.c 4564 2014-08-24 10:24:47Z michael $
 
24
 * \version $Id: m_user.c 5346 2015-01-11 12:41:14Z michael $
25
25
 */
26
26
 
27
27
#include "stdinc.h"
47
47
        const char *username,
48
48
        const char *realname)
49
49
{
50
 
  assert(source_p != NULL);
51
 
  assert(source_p->username != username);
52
50
  assert(IsUnknown(source_p));
53
51
 
54
 
  source_p->localClient->registration &= ~REG_NEED_USER;
 
52
  source_p->connection->registration &= ~REG_NEED_USER;
55
53
  source_p->servptr = &me;  /* Don't take the clients word for it, ever */
56
54
 
57
55
  strlcpy(source_p->info, realname, sizeof(source_p->info));
59
57
  if (!IsGotId(source_p))
60
58
    strlcpy(source_p->username, username, sizeof(source_p->username));
61
59
 
62
 
  if (!source_p->localClient->registration)
 
60
  if (!source_p->connection->registration)
63
61
    register_local_user(source_p);
64
62
}
65
63
 
82
80
{
83
81
  char *p = NULL;
84
82
 
85
 
  if (source_p->localClient->listener->flags & LISTENER_SERVER)
 
83
  if (source_p->connection->listener->flags & LISTENER_SERVER)
86
84
  {
87
85
    exit_client(source_p, "Use a different port");
88
86
    return 0;
123
121
{
124
122
  .node    = { NULL, NULL, NULL },
125
123
  .name    = NULL,
126
 
  .version = "$Revision: 4564 $",
 
124
  .version = "$Revision: 5346 $",
127
125
  .handle  = NULL,
128
126
  .modinit = module_init,
129
127
  .modexit = module_exit,