Skip to content

Commit

Permalink
Fix commands from non-partied members
Browse files Browse the repository at this point in the history
  • Loading branch information
theBGuy committed Jan 17, 2025
1 parent 70b30f3 commit f4986d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions d2bs/kolbot/libs/scripts/ControlBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,10 @@ const ControlBot = new Runnable(
if (!command || command.length < 2) return false;
console.debug("Checking command: " + command);
let [cmd, nick, full] = command;
if (!Misc.inMyParty(nick)) {
Chat.say("Accept party invite, noob. Cmds only allowed for party members.");
return false;
}
if (cmd.match(/^rush /gi)) {
cmd = cmd.split(" ")[1];
}
Expand Down

0 comments on commit f4986d9

Please sign in to comment.