This commit is contained in:
Erik C. Thauvin 2021-04-28 17:37:05 -07:00
parent 21cbecff8e
commit b8cecdad1d
4 changed files with 6 additions and 8 deletions

View file

@ -98,11 +98,9 @@ class Addons {
}
}
for (module in modules) {
if ((isPrivate && module.isPrivateMsgEnabled) || !isPrivate) {
if (module.commands.contains(cmd)) {
if (((isPrivate && module.isPrivateMsgEnabled) || !isPrivate) && module.commands.contains(cmd)) {
module.commandResponse(sender, cmd, args, isPrivate)
return true
}
}
}
return false

View file

@ -1,5 +1,5 @@
/*
* InfoJ.java
* Info.java
*
* Copyright (c) 2004-2021, Erik C. Thauvin (erik@thauvin.net)
* All rights reserved.

View file

@ -1,5 +1,5 @@
/*
* Version.java
* Versions.java
*
* Copyright (c) 2004-2021, Erik C. Thauvin (erik@thauvin.net)
* All rights reserved.