Complain to opers if a server that isn't a service tries to SU/RSFNC/NICKDELAY/SVSLOGIN.
This commit is contained in:
parent
21acd0961c
commit
ec57fe6779
2 changed files with 16 additions and 0 deletions
|
@ -94,7 +94,11 @@ me_su(struct Client *client_p, struct Client *source_p,
|
||||||
struct Client *target_p;
|
struct Client *target_p;
|
||||||
|
|
||||||
if(!(source_p->flags & FLAGS_SERVICE))
|
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;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if((target_p = find_client(parv[1])) == NULL)
|
if((target_p = find_client(parv[1])) == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -158,7 +162,11 @@ me_rsfnc(struct Client *client_p, struct Client *source_p,
|
||||||
char note[NICKLEN + 10];
|
char note[NICKLEN + 10];
|
||||||
|
|
||||||
if(!(source_p->flags & FLAGS_SERVICE))
|
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;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if((target_p = find_person(parv[1])) == NULL)
|
if((target_p = find_person(parv[1])) == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -260,7 +268,11 @@ me_nickdelay(struct Client *client_p, struct Client *source_p, int parc, const c
|
||||||
struct nd_entry *nd;
|
struct nd_entry *nd;
|
||||||
|
|
||||||
if(!(source_p->flags & FLAGS_SERVICE))
|
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;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
duration = atoi(parv[1]);
|
duration = atoi(parv[1]);
|
||||||
if (duration <= 0)
|
if (duration <= 0)
|
||||||
|
|
|
@ -152,7 +152,11 @@ me_svslogin(struct Client *client_p, struct Client *source_p,
|
||||||
int valid = 0;
|
int valid = 0;
|
||||||
|
|
||||||
if(!(source_p->flags & FLAGS_SERVICE))
|
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;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if((target_p = find_client(parv[1])) == NULL)
|
if((target_p = find_client(parv[1])) == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue