فهرست منبع

* Fixed m|o being able to chattr a user for a +private channel. (#98)

svn: 2315
Bryan Drewery 21 سال پیش
والد
کامیت
1fef4569f1
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -61,6 +61,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
   (A user may change to a perm-owner handle though in a situation where the list changes in binary)
 * Disabled ability to cmd_chpass a bot. (#42)
 * Fixed hubs sharing out channels that were 'slowparted'. (#93)
+* Fixed m|o being able to chattr a user for a +private channel. (#98)
 
 1.2.4
 * Fixed cmd_botset not displaying botnick.

+ 1 - 1
src/cmds.c

@@ -2309,7 +2309,7 @@ static void cmd_chattr(int idx, char *par)
       free(tmpchg);
     return;
   }
-    if (chan && privchan(user, chan, PRIV_OP)) {
+    if (chan && (privchan(user, chan, PRIV_OP) || (channel_privchan(chan) && !(chan_master(user) || glob_owner(user))))) {
       dprintf(idx, "You do not have access to change flags for %s\n", chan->dname);
       if (tmpchg)
         free(tmpchg);