]> jfr.im git - solanum.git/blobdiff - modules/m_snote.c
extensions/umode_hide_idle_time: mask times for hidden sources (#373)
[solanum.git] / modules / m_snote.c
index 26b5581128f2a514f1559685dff2cfaf7c40b071..b8086f1b1f3875c90f16fb4f7f2440ed3a3a792c 100644 (file)
@@ -1,8 +1,8 @@
 /*
- *  charybdis: an advanced Internet Relay Chat Daemon(ircd).
+ *  Solanum: a slightly advanced ircd
  *  m_snote.c: Server notice listener
  *
- *  Copyright (c) 2006 William Pitcock <nenolod -at- nenolod.net>
+ *  Copyright (c) 2006 Ariadne Conill <ariadne@dereferenced.org>
  *
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
@@ -34,7 +34,6 @@
 #include "hook.h"
 #include "client.h"
 #include "hash.h"
-#include "common.h"
 #include "hash.h"
 #include "match.h"
 #include "ircd.h"
@@ -66,7 +65,7 @@ DECLARE_MODULE_AV2(snote, NULL, NULL, snote_clist, NULL, NULL, NULL, NULL, snote
  *      parv[1] = snomask letter
  *     parv[2] = message
  */
-static int
+static void
 me_snote(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc,
        const char *parv[])
 {
@@ -75,12 +74,10 @@ me_snote(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
         * shit happens afterall -nenolod
         */
        if (parc > 3)
-               return 0;
+               return;
        if (!IsServer(source_p))
-               return 0;
+               return;
 
        sendto_realops_snomask_from(snomask_modes[(unsigned char) *parv[1]],
                L_ALL, source_p, "%s", parv[2]);
-
-       return 0;
 }