summaryrefslogtreecommitdiff
path: root/modules/m_certfp.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-15 23:12:35 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-15 23:12:35 +0000
commit6050eda92352c426897d0f4ffefff1e14d82a131 (patch)
tree805c366d597006c8397a09f60a395fab60547d60 /modules/m_certfp.c
parentb7561a82c59655512bc85214ae434eb245d5d936 (diff)
- Clean up all files in modules/ (fixed indentation, removed whitespaces/tabs)
- Fixed copyright years - Made module handlers int type for later use git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2821 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_certfp.c')
-rw-r--r--modules/m_certfp.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/m_certfp.c b/modules/m_certfp.c
index 50674de..a63ae4b 100644
--- a/modules/m_certfp.c
+++ b/modules/m_certfp.c
@@ -1,7 +1,7 @@
/*
- * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
+ * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
*
- * Copyright (C) 2002 by the past and present ircd coders, and others.
+ * Copyright (c) 2013-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
@@ -48,12 +48,12 @@
* - parv[0] = sender prefix
* - parv[1] = certificate fingerprint
*/
-static void
+static int
ms_certfp(struct Client *source_p, struct Client *client_p,
int parc, char *parv[])
{
if (!IsClient(source_p))
- return;
+ return 0;
MyFree(source_p->certfp);
source_p->certfp = strdup(parv[1]);
@@ -62,9 +62,11 @@ ms_certfp(struct Client *source_p, struct Client *client_p,
ID(source_p), parv[1]);
sendto_server(client_p, NOCAPS, CAP_TS6, ":%s CERTFP %s",
source_p->name, parv[1]);
+ return 0;
}
-static struct Message certfp_msgtab = {
+static struct Message certfp_msgtab =
+{
"CERTFP", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
{ m_ignore, m_ignore, ms_certfp, m_ignore, m_ignore, m_ignore }
};
@@ -81,7 +83,8 @@ module_exit(void)
mod_del_cmd(&certfp_msgtab);
}
-struct module module_entry = {
+struct module module_entry =
+{
.node = { NULL, NULL, NULL },
.name = NULL,
.version = "$Revision$",