Explorar el Código

* cmds not showing up in help after merge

svn: 1926
Bryan Drewery hace 21 años
padre
commit
e0df700159
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -711,7 +711,7 @@ findhelp(const char *cmd)
 {
   for (int hi = 0; (help[hi].cmd) && (help[hi].desc); hi++)
     if (!egg_strcasecmp(cmd, help[hi].cmd) &&
-      (!help[hi].cmd || (help[hi].type == HUB && conf.bot->hub) || (help[hi].type == LEAF && !conf.bot->hub)))
+      (!help[hi].type || (help[hi].type == HUB && conf.bot->hub) || (help[hi].type == LEAF && !conf.bot->hub)))
       return hi;
 
   return -1;