Sfoglia il codice sorgente

* Fixed cmd_conf not working at all.

svn: 2214
Bryan Drewery 21 anni fa
parent
commit
8f1adb5213
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -17,6 +17,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 1.2.4
 1.2.4
 * Fixed cmd_botset not displaying botnick.
 * Fixed cmd_botset not displaying botnick.
 * cmd_adduser now sends a NOTICE to the person being added with their initial password.
 * cmd_adduser now sends a NOTICE to the person being added with their initial password.
+* Fixed cmd_conf not working at all.
 
 
 1.2.3
 1.2.3
 
 

+ 1 - 1
src/cmds.c

@@ -1554,7 +1554,7 @@ static void cmd_sha1(int idx, char *par)
 
 
 static void cmd_conf(int idx, char *par)
 static void cmd_conf(int idx, char *par)
 {
 {
-  if (!conf.bot->localhub || !conf.bot->hub) {
+  if (!conf.bot->localhub && !conf.bot->hub) {
     dprintf(idx, "Please use '%s%s%s' for this login/shell.\n", RED(idx), conf.localhub, COLOR_END(idx));
     dprintf(idx, "Please use '%s%s%s' for this login/shell.\n", RED(idx), conf.localhub, COLOR_END(idx));
     return;
     return;
   }
   }