Sfoglia il codice sorgente

* Fixed cmd_comment bug with changing comment on lower level users.

svn: 1597
Bryan Drewery 21 anni fa
parent
commit
6d89c50951
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 1
doc/UPDATES

@@ -8,7 +8,7 @@ This is a summary of ChangeLog basically.
 * Fixed segfault while relaying.
 * Telnet host matching is now fixed to match these hosts against the userfile (ONLY FOR ACCESS):
   -telnet!telnet@ip -telnet!telnet@HOST -telnet!IDENT@IP -telnet!IDENT@HOST
-
+* Fixed cmd_comment bug with changing comment on lower level users.
 
 
 1.2

+ 1 - 1
src/cmds.c

@@ -1686,7 +1686,7 @@ static void cmd_comment(int idx, char *par)
     dprintf(idx, "No such user!\n");
     return;
   }
-  if (whois_access(dcc[idx].user, u1)) {
+  if (!whois_access(dcc[idx].user, u1)) {
     dprintf(idx, "You can't change comment on higher level users.\n");
     return;
   }