1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 17:53:14 +02:00

fixed some +K bugs

This commit is contained in:
codemastr
2000-09-04 19:39:19 +00:00
parent 493ba9981f
commit 73e45d7537
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -612,3 +612,5 @@
- Fixed a wierd NOTICE bug
- Modified and fixed the NOTICE bug totally, with some waste of the nospoof
system
- Fixed a bug where +K could be set when +i was not (reported by rapta)
- Made it so if you set -i on a channel that is +K it sets -iK
+4
View File
@@ -1598,11 +1598,15 @@ int do_mode_char(chptr, modetype, modechar, param, what, cptr, pcount, pvar,
case MODE_TOPICLIMIT:
case MODE_NOPRIVMSGS:
case MODE_INVITEONLY:
if (what == MODE_DEL && modetype == MODE_INVITEONLY && (chptr->mode.mode & MODE_NOKNOCK))
chptr->mode.mode &= ~MODE_NOKNOCK;
case MODE_RGSTRONLY:
case MODE_NOCOLOR:
case MODE_NOKICKS:
case MODE_STRIP:
case MODE_NOKNOCK:
if (what == MODE_ADD && modetype == MODE_NOKNOCK && !(chptr->mode.mode & MODE_INVITEONLY))
break;
#ifdef STRIPBADWORDS
case MODE_STRIPBADWORDS:
#endif