浏览代码

* cmds not showing up in help after merge

svn: 1926
Bryan Drewery 21 年之前
父节点
当前提交
e0df700159
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;