mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 06:43:12 +02:00
Fixed an SVSFLINE bug when removing an unknown dccdeny
This commit is contained in:
@@ -659,3 +659,4 @@ seen. gmtime warning still there
|
||||
- Updated m_template.c to use module version 2
|
||||
- Removed a // comment in src/ircd.c
|
||||
- Fixed a bunch of updconf bugs reported by DarkSypher
|
||||
- Fixed an SVSFLINE bug when removing an unknown dccdeny
|
||||
|
||||
+4
-2
@@ -278,12 +278,14 @@ int m_svsfline(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
}
|
||||
case '-':
|
||||
{
|
||||
ConfigItem_deny_dcc *deny;
|
||||
if (!IsULine(sptr))
|
||||
return 0;
|
||||
if (parc < 3)
|
||||
return 0;
|
||||
|
||||
DCCdeny_del(Find_deny_dcc(parv[2]));
|
||||
if (!(deny = Find_deny_dcc(parv[2])))
|
||||
break;
|
||||
DCCdeny_del(deny);
|
||||
sendto_serv_butone_token(cptr, sptr->name,
|
||||
MSG_SVSFLINE, TOK_SVSFLINE,
|
||||
parv[2]);
|
||||
|
||||
Reference in New Issue
Block a user