Procházet zdrojové kódy

* Users who are v|o in a +private chan are now voiced, as before |v was needed.

svn: 1907
Bryan Drewery před 21 roky
rodič
revize
014e78d713
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/flags.c

+ 1 - 0
doc/UPDATES

@@ -37,6 +37,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed.
 * Fixed some bad passes being generated/set beginning with -/+
 * Fixed binary exiting with ERR_NOBOTS under conditions that it shouldn't. (updating)
 * Fixed bots not rechecking channel for invalid users after a .-chrec
+* Users who are v|o in a +private chan are now voiced, as before |v was needed.
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 1 - 1
src/flags.c

@@ -410,7 +410,7 @@ privchan(struct flag_record fr, struct chanset_t *chan, int type)
     if (chan_op(fr))
       return 0;
   } else if (type == PRIV_VOICE) {
-    if (chan_voice(fr))
+    if (chan_voice(fr) || chan_op(fr))
       return 0;
   }
   return 1;                     /* user is restricted by +private */