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

« back to all changes in this revision

Viewing changes to modules/m_motd.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_motd.c
23
23
 * \brief Includes required functions for processing the MOTD command.
24
 
 * \version $Id: m_motd.c 4564 2014-08-24 10:24:47Z michael $
 
24
 * \version $Id: m_motd.c 5346 2015-01-11 12:41:14Z michael $
25
25
 */
26
26
 
27
27
#include "stdinc.h"
70
70
 
71
71
  if ((last_used + ConfigGeneral.pace_wait) > CurrentTime)
72
72
  {
73
 
    sendto_one_numeric(source_p, &me, RPL_LOAD2HI);
 
73
    sendto_one_numeric(source_p, &me, RPL_LOAD2HI, "MOTD");
74
74
    return 0;
75
75
  }
76
76
 
77
77
  last_used = CurrentTime;
78
78
 
79
 
  /* This is safe enough to use during non hidden server mode */
80
 
  if (!ConfigServerHide.disable_remote_commands && !ConfigServerHide.hide_servers)
81
 
    if (hunt_server(source_p, ":%s MOTD :%s", 1,
82
 
                    parc, parv) != HUNTED_ISME)
 
79
  if (!ConfigServerHide.disable_remote_commands)
 
80
    if (hunt_server(source_p, ":%s MOTD :%s", 1, parc, parv) != HUNTED_ISME)
83
81
      return 0;
84
82
 
85
83
  do_motd(source_p);
100
98
static int
101
99
ms_motd(struct Client *source_p, int parc, char *parv[])
102
100
{
103
 
  if (hunt_server(source_p, ":%s MOTD :%s", 1,
104
 
                  parc, parv) != HUNTED_ISME)
 
101
  if (hunt_server(source_p, ":%s MOTD :%s", 1, parc, parv) != HUNTED_ISME)
105
102
    return 0;
106
103
 
107
104
  do_motd(source_p);
130
127
{
131
128
  .node    = { NULL, NULL, NULL },
132
129
  .name    = NULL,
133
 
  .version = "$Revision: 4564 $",
 
130
  .version = "$Revision: 5346 $",
134
131
  .handle  = NULL,
135
132
  .modinit = module_init,
136
133
  .modexit = module_exit,