1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 03:13:14 +02:00

Update default snomask to +bBcdfkqsSoO

This commit is contained in:
Bram Matthys
2021-09-24 10:03:18 +02:00
parent e14b463b60
commit b41311ddaf
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -395,8 +395,7 @@ typedef enum ClientStatus {
/** @} */
#define SNO_DEFOPER "+kscfvGqobS"
#define SNO_DEFUSER "+ks"
#define OPER_SNOMASKS "+bBcdfkqsSoO"
#define SEND_UMODES (SendUmodes)
#define ALL_UMODES (AllUmodes)
+1 -1
View File
@@ -1635,7 +1635,7 @@ void config_setdefaultsettings(Configuration *i)
{
char tmp[512];
safe_strdup(i->oper_snomask, SNO_DEFOPER);
safe_strdup(i->oper_snomask, OPER_SNOMASKS);
i->ident_read_timeout = 7;
i->ident_connect_timeout = 3;
i->ban_version_tkl_time = 86400; /* 1d */
+2 -2
View File
@@ -1172,10 +1172,10 @@ CMD_FUNC(_cmd_umode)
goto def;
}
}
if (what == MODE_ADD)
if ((what == MODE_ADD) && IsOper(client))
{
if (parc < 4)
set_snomask(client, IsOper(client) ? SNO_DEFOPER : SNO_DEFUSER);
set_snomask(client, OPER_SNOMASKS);
else
set_snomask(client, parv[3]);
goto def;