]> jfr.im git - solanum.git/blobdiff - extensions/sno_farconnect.c
Remove Windows support
[solanum.git] / extensions / sno_farconnect.c
index d1c1a9000174e48b10c6633fd47fb6c4ce78128a..89a8f04542958b443bd6106efbf0801972ce6c63 100644 (file)
@@ -15,6 +15,9 @@
 #include "s_conf.h"
 #include "snomask.h"
 
+static const char sno_desc[] =
+       "Adds server notice mask +F that allows operators to receive notices for connections on other servers";
+
 static int _modinit(void);
 static void _moddeinit(void);
 static void h_gcn_new_remote_user(struct Client *);
@@ -26,7 +29,7 @@ mapi_hfn_list_av1 gcn_hfnlist[] = {
        { NULL, NULL }
 };
 
-DECLARE_MODULE_AV2(globalconnexit, _modinit, _moddeinit, NULL, NULL, gcn_hfnlist, NULL, NULL, NULL);
+DECLARE_MODULE_AV2(globalconnexit, _modinit, _moddeinit, NULL, NULL, gcn_hfnlist, NULL, NULL, sno_desc);
 
 static int
 _modinit(void)
@@ -35,7 +38,7 @@ _modinit(void)
        snomask_modes['F'] = find_snomask_slot();
 
        /* show the fact that we are showing user information in /version */
-       opers_see_all_users = 1;
+       opers_see_all_users = true;
 
        return 0;
 }
@@ -54,10 +57,11 @@ h_gcn_new_remote_user(struct Client *source_p)
        if (!HasSentEob(source_p->servptr))
                return;
        sendto_realops_snomask_from(snomask_modes['F'], L_ALL, source_p->servptr,
-                       "Client connecting: %s (%s@%s) [%s] {%s} [%s]",
+                       "Client connecting: %s (%s@%s) [%s] {%s} <%s> [%s]",
                        source_p->name, source_p->username, source_p->orighost,
                        show_ip(NULL, source_p) ? source_p->sockhost : "255.255.255.255",
-                       "?", source_p->info);
+                       "?", *source_p->user->suser ? source_p->user->suser : "*",
+                       source_p->info);
 }
 
 static void