Ver código fonte

* Only match botcmd on non-hubs for groups

Bryan Drewery 14 anos atrás
pai
commit
5f29d04c05
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -1389,7 +1389,7 @@ static void cmd_botcmd(int idx, char *par)
       continue;
     cnt++;
     bool group_match = false;
-    if (botm[0] == '%') {
+    if (botm[0] == '%' && bot_hublevel(botu) == 999) {
       bd::String botgroups = var_get_bot_data(botu, "groups", true);
       if (botgroups.split(',').find(botm + 1) != bd::String::npos) {
         group_match = true;