소스 검색

* Only match botcmd on non-hubs for groups

Bryan Drewery 14 년 전
부모
커밋
5f29d04c05
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;