/[svn]/ircd-hybrid-8/modules/m_post.c
ViewVC logotype

Contents of /ircd-hybrid-8/modules/m_post.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1178 - (show annotations)
Mon Aug 15 08:11:31 2011 UTC (8 years, 3 months ago) by michael
File MIME type: text/x-chdr
File size: 2365 byte(s)
- Cleanup and restore older parts of the irc-command parser.
  Gives back ability to specify maximum amount of parameters
  that are processed within a command.

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * m_post.c: Exits the user if unregistered, it is a web form.
4 *
5 * Copyright (C) 2001-2002 Hybrid Development Team
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 */
24
25 #include "stdinc.h"
26 #include "handlers.h"
27 #include "client.h"
28 #include "ircd.h"
29 #include "numeric.h"
30 #include "s_serv.h"
31 #include "send.h"
32 #include "msg.h"
33 #include "parse.h"
34 #include "modules.h"
35 #include "s_conf.h"
36
37 static void mr_dumb_proxy(struct Client *, struct Client *, int, char *[]);
38
39 struct Message post_msgtab = {
40 "POST", 0, 0, 0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
41 {mr_dumb_proxy, m_ignore, m_ignore, m_ignore, m_ignore, m_ignore}
42 };
43
44 struct Message get_msgtab = {
45 "GET", 0, 0, 0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
46 {mr_dumb_proxy, m_ignore, m_ignore, m_ignore, m_ignore, m_ignore}
47 };
48
49 struct Message put_msgtab = {
50 "PUT", 0, 0, 0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
51 {mr_dumb_proxy, m_ignore, m_ignore, m_ignore, m_ignore, m_ignore}
52 };
53
54 void
55 _modinit(void)
56 {
57 mod_add_cmd(&post_msgtab);
58 mod_add_cmd(&get_msgtab);
59 mod_add_cmd(&put_msgtab);
60 }
61
62 void
63 _moddeinit(void)
64 {
65 mod_del_cmd(&post_msgtab);
66 mod_del_cmd(&get_msgtab);
67 mod_del_cmd(&put_msgtab);
68 }
69
70 const char *_version = "$Revision$";
71
72 /*
73 ** mr_dumb_proxy
74 ** parv[0] = sender prefix
75 ** parv[1] = comment
76 */
77 static void
78 mr_dumb_proxy(struct Client *client_p, struct Client *source_p,
79 int parc, char *parv[])
80 {
81 sendto_realops_flags(UMODE_REJ, L_ALL,
82 "HTTP Proxy disconnected: [%s@%s]",
83 client_p->username, client_p->host);
84 exit_client(source_p, source_p, "Client Exit");
85 }

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26