1
0
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:
codemastr
2001-07-03 22:10:26 +00:00
parent 55becdc356
commit dd7b98a4c2
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -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
View File
@@ -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]);