]> jfr.im git - solanum.git/blobdiff - extensions/spy_links_notice.c
Merge pull request #288 from edk0/umode-o-split
[solanum.git] / extensions / spy_links_notice.c
index b71e2d40942544614cda84382daee60c476617ba..17b5d0e905a35d82b366e224ae55a7fc91b2a25e 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_links_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 uses LINKS";
+
 void show_links(hook_data *);
 
 mapi_hfn_list_av1 links_hfnlist[] = {
@@ -35,7 +35,7 @@ mapi_hfn_list_av1 links_hfnlist[] = {
        {NULL, NULL}
 };
 
-DECLARE_MODULE_AV1(links_spy, NULL, NULL, NULL, NULL, links_hfnlist, "$Revision: 498 $");
+DECLARE_MODULE_AV2(links_spy, NULL, NULL, NULL, NULL, links_hfnlist, NULL, NULL, spy_desc);
 
 void
 show_links(hook_data *data)
@@ -45,5 +45,5 @@ show_links(hook_data *data)
        sendto_realops_snomask(SNO_SPY, L_ALL,
                             "LINKS '%s' requested by %s (%s@%s) [%s]",
                             mask, data->client->name, data->client->username,
-                            data->client->host, data->client->user->server);
+                            data->client->host, data->client->servptr->name);
 }