Parcourir la source

* Ported [2804] to 1.2.10
* Fixed chanmode -i conflicting with closed-invite 1. (fixes #249)


svn: 2805

Bryan Drewery il y a 20 ans
Parent
commit
3ed2111731
2 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 1 0
      doc/UPDATES
  2. 3 0
      src/mod/channels.mod/channels.c

+ 1 - 0
doc/UPDATES

@@ -17,6 +17,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed a segfault in cmd_rehash and revised help listing for it. (fixes #242)
 * Fixed cmd_set not saving the userfile when needed. (fixes #245)
 * Fixed cmd_set list removal bugs. (fixes #246)
+* Fixed chanmode -i conflicting with closed-invite 1. (fixes #249)
 
 1.2.9 - http://tracker.shatow.net/milestone/1.2.9
 * Fixed cmd_[un]stick not properly using numbers for channel masks. (#160)

+ 3 - 0
src/mod/channels.mod/channels.c

@@ -562,6 +562,9 @@ static void set_mode_protect(struct chanset_t *chan, char *set)
 
   if (chan->mode_mns_prot & CHANPRIV && chan->closed_private)
     chan->closed_private = 0;
+
+  if (chan->mode_mns_prot & CHANINV && chan->closed_invite)
+    chan->closed_invite = 0;
 }
 
 static void get_mode_protect(struct chanset_t *chan, char *s)