mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Add ignore checks manually
This commit is contained in:
1 parent
ad857e326a
commit
5082a4c1bc
2 files changed
+9
No files matched your search
@@ -32,6 +32,10 @@ public class AliasedChannelCommand extends BaseCommand {
|
||||
throw new ConditionFailedException(chatChannel.getCannotUseMessage());
|
||||
}
|
||||
|
||||
if (user.getChannelSettings(chatChannel).isIgnored()) {
|
||||
throw new ConditionFailedException(chatChannel.getCannotUseMessage());
|
||||
}
|
||||
|
||||
if (args == null || args.length == 0) {
|
||||
user.setSelectedChannel(getChatChannel());
|
||||
|
||||
|
||||
Reference in new issue
Block a user