Made DCC deny work with files with spaces

This commit is contained in:
codemastr 2003-10-26 20:39:47 +00:00
parent 4264082420
commit 4fcae4f1a1
2 changed files with 7 additions and 2 deletions

View file

@ -2501,3 +2501,6 @@ seen. gmtime warning still there
'what' will be MODE_ADD if trying to add and MODE_DEL if trying to remove.
- Added HOOKTYPE_REMOTE_NICKCHANGE (called like: cptr, sptr, newnick).
- Fixed a bug regarding +f and bounce modes, would cause a crash, reported by Rocko.
- Made it so the dccdeny system can now check files that contain spaces (suggested by
Lamego)

View file

@ -228,8 +228,10 @@ DLLFUNC int m_message(aClient *cptr, aClient *sptr, int parc, char *parv[], int
continue;
}
ctcp = &parv[2][10];
end = (char *)index(ctcp, ' ');
if (*ctcp == '"' && *(ctcp+1))
end = index(ctcp+1, '"');
else
end = index(ctcp, ' ');
/* check if it was fake.. just pass it along then .. */
if (!end || (end < ctcp))
goto dcc_was_ok;