summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-14 18:16:51 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-14 18:16:51 +0000
commit9990d625ec4723aaeeb5fd2b83f2ec5886179941 (patch)
treea1867ea84a61eb98f448ad53c5c94facdec936ed /modules
parentf6ce20726b517875f98a2238fe247635626cfd40 (diff)
- m_encap.c: fixed indentation, style cleanups, reformatting
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2817 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/m_encap.c29
1 files changed, 18 insertions, 11 deletions
diff --git a/modules/m_encap.c b/modules/m_encap.c
index 88ca5e8..70bb3d8 100644
--- a/modules/m_encap.c
+++ b/modules/m_encap.c
@@ -1,8 +1,7 @@
/*
- * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
- * m_encap.c: encapsulated command propagation and parsing
+ * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
*
- * Copyright (C) 2003 by the past and present ircd coders, and others.
+ * Copyright (c) 2003-2014 ircd-hybrid development team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,8 +17,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
- *
- * $Id$
+ */
+
+/*! \file m_encap.c
+ * \brief Includes required functions for processing the ENCAP command.
+ * \version $Id$
*/
#include "stdinc.h"
@@ -94,9 +96,12 @@ ms_encap(struct Client *client_p, struct Client *source_p,
mptr->bytes += strlen(buffer);
/*
- * yes this is an ugly hack, but it is quicker than copying the entire array again
- * note: this hack wouldnt be needed if parv[0] were set to the command name, rather
- * than being derived from the prefix, as it should have been from the beginning.
+ * Yes this is an ugly hack, but it is quicker than copying the
+ * entire array again.
+ *
+ * Note: this hack wouldn't be needed if parv[0] were set to the
+ * command name, rather than being derived from the prefix, as
+ * it should have been from the beginning.
*/
ptr = parv[0];
parv += 2;
@@ -107,9 +112,10 @@ ms_encap(struct Client *client_p, struct Client *source_p,
(*handler)(client_p, source_p, parc, parv);
}
-static struct Message encap_msgtab = {
+static struct Message encap_msgtab =
+{
"ENCAP", 0, 0, 3, MAXPARA, MFLG_SLOW, 0,
- {m_ignore, m_ignore, ms_encap, m_ignore, m_ignore, m_ignore}
+ { m_ignore, m_ignore, ms_encap, m_ignore, m_ignore, m_ignore }
};
static void
@@ -126,7 +132,8 @@ module_exit(void)
delete_capability("ENCAP");
}
-struct module module_entry = {
+struct module module_entry =
+{
.node = { NULL, NULL, NULL },
.name = NULL,
.version = "$Revision$",