1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 21:53:13 +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
+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;