Przeglądaj źródła

* Fixed many channel cmds blocking access due to +botbitch. (#141)

svn: 2323
Bryan Drewery 21 lat temu
rodzic
commit
14a6f29318
2 zmienionych plików z 6 dodań i 5 usunięć
  1. 1 0
      doc/UPDATES
  2. 5 5
      src/mod/irc.mod/cmdsirc.c

+ 1 - 0
doc/UPDATES

@@ -15,6 +15,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * (REVERTED FROM 1.2.3) Disabled all memory allocations after a segfault (Fixes CPU spinning)
   -This actually CAUSED cpu-spins after segfaults.
 * Disabled debug contexts as they were useless.
+* Fixed many channel cmds blocking access due to +botbitch. (#141)
 
 1.2.5
 * Fixed a segfault/cpu-spin with mode parsing. (#25)

+ 5 - 5
src/mod/irc.mod/cmdsirc.c

@@ -223,7 +223,7 @@ static void cmd_kickban(int idx, char *par)
       dprintf(idx, "No such channel.\n");
       return;
     }
-    else if (!chk_op(user, chan)) {
+    else if (!real_chk_op(user, chan, 0)) {
       if (all) goto next;
       dprintf(idx, "You don't have access to %s\n", chan->dname);
       return;
@@ -824,7 +824,7 @@ static void cmd_deop(int idx, char *par)
       if (all) goto next;
       dprintf(idx, "No such channel.\n");
     }
-    else if (!chk_op(user, chan)) {
+    else if (!real_chk_op(user, chan, 0)) {
       if (all) goto next;
       dprintf(idx, "You don't have access to deop on %s\n", chan->dname);
       return;
@@ -926,7 +926,7 @@ static void cmd_kick(int idx, char *par)
       dprintf(idx, "No such channel.\n");
       return;
     }
-    else if (!chk_op(user, chan)) {
+    else if (!real_chk_op(user, chan, 0)) {
       if (all) goto next;
       dprintf(idx, "You don't have access to kick on %s\n", chan->dname);
       return;
@@ -995,7 +995,7 @@ static void cmd_getkey(int idx, char *par)
     dprintf(idx, "No such channel.\n");
     return;
   }
-  else if (!chk_op(user, chan)) {
+  else if (!real_chk_op(user, chan, 0)) {
     dprintf(idx, "You don't have access for %s\n", chan->dname);
     return;
   }
@@ -1218,7 +1218,7 @@ static void do_invite(int idx, char *par, bool op)
       if (all) goto next;
       dprintf(idx, "No such channel.\n");
     }
-    else if (!chk_op(user, chan)) {
+    else if (!real_chk_op(user, chan, 0)) {
       if (all) goto next;
       dprintf(idx, "You don't have access to invite to %s\n", chan->dname);
       return;