]> jfr.im git - solanum.git/blobdiff - modules/m_users.c
Replace most checks for +o with oper:general
[solanum.git] / modules / m_users.c
index 82ab1c8085786fa85a0635529b2deb7c1ba7d66d..af9be292fcce3dc4ee1937581a010acec1a5162b 100644 (file)
@@ -20,8 +20,6 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
- *
- *  $Id: m_users.c 254 2005-09-21 23:35:12Z nenolod $
  */
 
 #include "stdinc.h"
 #include "parse.h"
 #include "modules.h"
 
-static int m_users(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static const char users_desc[] =
+       "Provides the USERS command to display connection statistics locally and globally";
+
+static void m_users(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 struct Message users_msgtab = {
-       "USERS", 0, 0, 0, MFLG_SLOW,
+       "USERS", 0, 0, 0, 0,
        {mg_unreg, {m_users, 0}, {m_users, 0}, mg_ignore, mg_ignore, {m_users, 0}}
 };
 
 mapi_clist_av1 users_clist[] = { &users_msgtab, NULL };
-DECLARE_MODULE_AV1(users, NULL, NULL, users_clist, NULL, NULL, "$Revision: 254 $");
+
+DECLARE_MODULE_AV2(users, NULL, NULL, users_clist, NULL, NULL, NULL, NULL, users_desc);
 
 /*
  * m_users
  *      parv[1] = servername
  */
-static int
+static void
 m_users(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        if(hunt_server(client_p, source_p, ":%s USERS :%s", 1, parc, parv) == HUNTED_ISME)
@@ -66,6 +68,4 @@ m_users(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
                                   Count.total, Count.max_tot,
                                   Count.total, Count.max_tot);
        }
-
-       return 0;
 }