diff options
Diffstat (limited to 'modules/m_ison.c')
-rw-r--r-- | modules/m_ison.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/modules/m_ison.c b/modules/m_ison.c index 96e30e3..9a1b864 100644 --- a/modules/m_ison.c +++ b/modules/m_ison.c @@ -1,8 +1,7 @@ /* - * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). - * m_ison.c: Provides a single line answer of whether a user is online. + * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) * - * Copyright (C) 2002 by the past and present ircd coders, and others. + * Copyright (c) 1997-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_ison.c + * \brief Includes required functions for processing the ISON command. + * \version $Id$ */ #include "stdinc.h" @@ -41,7 +43,7 @@ * format: * ISON :nicklist */ -static void +static int m_ison(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { @@ -96,11 +98,13 @@ m_ison(struct Client *client_p, struct Client *source_p, *current_insert_point = '\0'; sendto_one(source_p, "%s", buf); + return 0; } -static struct Message ison_msgtab = { +static struct Message ison_msgtab = +{ "ISON", 0, 0, 2, 1, MFLG_SLOW, 0, - {m_unregistered, m_ison, m_ignore, m_ignore, m_ison, m_ignore} + { m_unregistered, m_ison, m_ignore, m_ignore, m_ison, m_ignore } }; static void @@ -115,7 +119,8 @@ module_exit(void) mod_del_cmd(&ison_msgtab); } -struct module module_entry = { +struct module module_entry = +{ .node = { NULL, NULL, NULL }, .name = NULL, .version = "$Revision$", |