1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 23:43:13 +02:00

Fixed a bug allowing channel keys to have spaces

This commit is contained in:
codemastr
2001-06-27 15:44:52 +00:00
parent 2c9232113e
commit 794500dbc5
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -614,3 +614,4 @@ seen. gmtime warning still there
- Added the ability to use file globs in loadmodule and include (only if your system has glob)
- Added ./Config option to enable IPv6 (and made a configure check to make sure we can)
- Made glob() use GLOB_LIMIT on OpenBSD 2.9 to help prevent a DoS
- Fixed a bug allowing channek keys to have spaces
+5 -1
View File
@@ -1853,9 +1853,13 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param, u_
break;
if (what == MODE_ADD)
{
if (!bounce) /* don't do the mode at all. */
if (!bounce) { /* don't do the mode at all. */
char *tmp;
if ((tmp = strchr(param, ' ')))
*tmp = '\0';
strncpyzt(chptr->mode.key, param,
sizeof(chptr->mode.key));
}
tmpstr = param;
}
else