mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-11 20:51:35 +01:00
Made DCC deny work with files with spaces
This commit is contained in:
parent
4264082420
commit
4fcae4f1a1
2 changed files with 7 additions and 2 deletions
3
Changes
3
Changes
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue