فهرست منبع

Fix backwards logic for applying invites in -dynamicinvites channels.

Having +i requires setting the +I. Having -i means the -I is not
yet needed.
Bryan Drewery 10 سال پیش
والد
کامیت
80520728eb
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      doc/UPDATES.md
  2. 1 1
      src/mod/irc.mod/chan.cc

+ 1 - 0
doc/UPDATES.md

@@ -9,6 +9,7 @@
   * Fix ban/exempt/invite masking not working with 10-char idents.
   * Fix ban/exempt/invite masking not working with 10-char idents.
   * Fallback to ISON if the server falsely claims to support MONITOR.
   * Fallback to ISON if the server falsely claims to support MONITOR.
   * Fix bot not auto-opping after just connecting.
   * Fix bot not auto-opping after just connecting.
+  * Fix invites not being applied in -dynamicinvites channels when +i is set.
 
 
 # 1.4.6
 # 1.4.6
   * Disable demo TCL support by default to prevent confusion during build.
   * Disable demo TCL support by default to prevent confusion during build.

+ 1 - 1
src/mod/irc.mod/chan.cc

@@ -1038,7 +1038,7 @@ static void recheck_invites(struct chanset_t *chan)
        * only) or invite is sticky.
        * only) or invite is sticky.
        */
        */
       if (!isinvited(chan, ir->mask) && ((!channel_dynamicinvites(chan) &&
       if (!isinvited(chan, ir->mask) && ((!channel_dynamicinvites(chan) &&
-          !(chan->channel.mode & CHANINV)) || ir->flags & MASKREC_STICKY))
+          (chan->channel.mode & CHANINV)) || ir->flags & MASKREC_STICKY))
 	add_mode(chan, '+', 'I', ir->mask);
 	add_mode(chan, '+', 'I', ir->mask);
 	/* do_mask(chan, chan->channel.invite, ir->mask, 'I');*/
 	/* do_mask(chan, chan->channel.invite, ir->mask, 'I');*/
     }
     }