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

« back to all changes in this revision

Viewing changes to modules/m_lusers.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_lusers.c
23
23
 * \brief Includes required functions for processing the LUSERS command.
24
 
 * \version $Id: m_lusers.c 4564 2014-08-24 10:24:47Z michael $
 
24
 * \version $Id: m_lusers.c 5346 2015-01-11 12:41:14Z michael $
25
25
 */
26
26
 
27
27
#include "stdinc.h"
55
55
 
56
56
  if ((last_used + ConfigGeneral.pace_wait_simple) > CurrentTime)
57
57
  {
58
 
    sendto_one_numeric(source_p, &me, RPL_LOAD2HI);
 
58
    sendto_one_numeric(source_p, &me, RPL_LOAD2HI, "LUSERS");
59
59
    return 0;
60
60
  }
61
61
 
62
62
  last_used = CurrentTime;
63
63
 
64
 
  if (parc > 2 && !ConfigServerHide.disable_remote_commands)
65
 
    if (hunt_server(source_p, ":%s LUSERS %s :%s", 2,
66
 
                    parc, parv) != HUNTED_ISME)
 
64
  if (!ConfigServerHide.disable_remote_commands)
 
65
    if (hunt_server(source_p, ":%s LUSERS %s :%s", 2, parc, parv) != HUNTED_ISME)
67
66
      return 0;
68
67
 
69
68
  show_lusers(source_p);
85
84
static int
86
85
ms_lusers(struct Client *source_p, int parc, char *parv[])
87
86
{
88
 
  if (parc > 2)
89
 
    if (hunt_server(source_p, ":%s LUSERS %s :%s", 2,
90
 
                    parc, parv) != HUNTED_ISME)
91
 
        return 0;
 
87
  if (hunt_server(source_p, ":%s LUSERS %s :%s", 2, parc, parv) != HUNTED_ISME)
 
88
    return 0;
92
89
 
93
90
  show_lusers(source_p);
94
91
  return 0;
116
113
{
117
114
  .node    = { NULL, NULL, NULL },
118
115
  .name    = NULL,
119
 
  .version = "$Revision: 4564 $",
 
116
  .version = "$Revision: 5346 $",
120
117
  .handle  = NULL,
121
118
  .modinit = module_init,
122
119
  .modexit = module_exit,