]> jfr.im git - solanum.git/blobdiff - extensions/spy_motd_notice.c
Update news
[solanum.git] / extensions / spy_motd_notice.c
index b872f34ba19275b8a3388808973bf24f7cd0ba1e..1a6c123ed65324976c01b00ebe02f1af01b893b8 100644 (file)
@@ -18,8 +18,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: spy_motd_notice.c 498 2006-01-15 16:40:33Z jilles $
  */
 #include "stdinc.h"
 #include "modules.h"
@@ -28,6 +26,8 @@
 #include "ircd.h"
 #include "send.h"
 
+static const char spy_desc[] = "Sends a notice when someone looks at the MOTD";
+
 void show_motd(hook_data *);
 
 mapi_hfn_list_av1 motd_hfnlist[] = {
@@ -35,7 +35,7 @@ mapi_hfn_list_av1 motd_hfnlist[] = {
        {NULL, NULL}
 };
 
-DECLARE_MODULE_AV1(motd_spy, NULL, NULL, NULL, NULL, motd_hfnlist, "$Revision: 498 $");
+DECLARE_MODULE_AV2(motd_spy, NULL, NULL, NULL, NULL, motd_hfnlist, NULL, NULL, spy_desc);
 
 void
 show_motd(hook_data *data)
@@ -43,5 +43,5 @@ show_motd(hook_data *data)
        sendto_realops_snomask(SNO_SPY, L_ALL,
                             "motd requested by %s (%s@%s) [%s]",
                             data->client->name, data->client->username,
-                            data->client->host, data->client->user->server);
+                            data->client->host, data->client->servptr->name);
 }