]> jfr.im git - solanum.git/blobdiff - extensions/spy_admin_notice.c
Merge pull request #162 from maxteufel/umode_noctcp
[solanum.git] / extensions / spy_admin_notice.c
index f8627fc970aabf2dcea6408f8510647fc4449a1c..8d4770634c237f4567267ab2e6c5be4a8f1af29e 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_admin_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 ADMIN";
+
 void show_admin(hook_data *);
 
 mapi_hfn_list_av1 admin_hfnlist[] = {
@@ -35,7 +35,7 @@ mapi_hfn_list_av1 admin_hfnlist[] = {
        {NULL, NULL}
 };
 
-DECLARE_MODULE_AV1(admin_spy, NULL, NULL, NULL, NULL, admin_hfnlist, "$Revision: 498 $");
+DECLARE_MODULE_AV2(admin_spy, NULL, NULL, NULL, NULL, admin_hfnlist, NULL, NULL, spy_desc);
 
 void
 show_admin(hook_data *data)
@@ -43,5 +43,5 @@ show_admin(hook_data *data)
        sendto_realops_snomask(SNO_SPY, L_ALL,
                             "admin 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);
 }