|
@@ -711,7 +711,7 @@ findhelp(const char *cmd)
|
|
|
{
|
|
{
|
|
|
for (int hi = 0; (help[hi].cmd) && (help[hi].desc); hi++)
|
|
for (int hi = 0; (help[hi].cmd) && (help[hi].desc); hi++)
|
|
|
if (!egg_strcasecmp(cmd, help[hi].cmd) &&
|
|
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 hi;
|
|
|
|
|
|
|
|
return -1;
|
|
return -1;
|