]> jfr.im git - solanum.git/commitdiff
Complain to opers if a server that isn't a service tries to SU/RSFNC/NICKDELAY/SVSLOGIN.
authorKeith Buck <redacted>
Mon, 21 May 2012 17:27:02 +0000 (17:27 +0000)
committerKeith Buck <redacted>
Mon, 21 May 2012 17:27:02 +0000 (17:27 +0000)
modules/m_services.c
modules/m_signon.c

index 5295c762f8613724e74c098966da852ae5a2c00d..1105a8b08bdc180ec27b797c7a14d100407b92f8 100644 (file)
@@ -94,7 +94,11 @@ me_su(struct Client *client_p, struct Client *source_p,
        struct Client *target_p;
 
        if(!(source_p->flags & FLAGS_SERVICE))
+       {
+               sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       "Non-service server %s attempting to execute services-only command SU", source_p->name);
                return 0;
+       }
 
        if((target_p = find_client(parv[1])) == NULL)
                return 0;
@@ -158,7 +162,11 @@ me_rsfnc(struct Client *client_p, struct Client *source_p,
        char note[NICKLEN + 10];
 
        if(!(source_p->flags & FLAGS_SERVICE))
+       {
+               sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       "Non-service server %s attempting to execute services-only command RSFNC", source_p->name);
                return 0;
+       }
 
        if((target_p = find_person(parv[1])) == NULL)
                return 0;
@@ -260,7 +268,11 @@ me_nickdelay(struct Client *client_p, struct Client *source_p, int parc, const c
        struct nd_entry *nd;
 
        if(!(source_p->flags & FLAGS_SERVICE))
+       {
+               sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       "Non-service server %s attempting to execute services-only command NICKDELAY", source_p->name);
                return 0;
+       }
 
        duration = atoi(parv[1]);
        if (duration <= 0)
index 6741cf9e078526f3d7b7a9a34dad8c2cb8460a70..79480d94826468fb38febe794a1afcee6bdfa523 100644 (file)
@@ -152,7 +152,11 @@ me_svslogin(struct Client *client_p, struct Client *source_p,
        int valid = 0;
 
        if(!(source_p->flags & FLAGS_SERVICE))
+       {
+               sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       "Non-service server %s attempting to execute services-only command SVSLOGIN", source_p->name);
                return 0;
+       }
 
        if((target_p = find_client(parv[1])) == NULL)
                return 0;