Explorar o código

* cmds not showing up in help after merge

svn: 1926
Bryan Drewery %!s(int64=21) %!d(string=hai) anos
pai
achega
e0df700159
Modificáronse 1 ficheiros con 1 adicións e 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;