mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Improve / fix ignorable setting, fixes #33
This commit is contained in:
1 parent
92505974d7
commit
a8e3267be4
4 files changed
+15
-1
No files matched your search
@@ -26,7 +26,9 @@ public class ToggleCommand extends BaseCommand {
|
||||
|
||||
UserChannelSettings settings = user.getChannelSettings(channel);
|
||||
|
||||
if (settings.isIgnored()) {
|
||||
if (!channel.isIgnorable()) {
|
||||
message = channel.getCannotIgnoreMessage();
|
||||
} else if (settings.isIgnored()) {
|
||||
settings.setIgnoring(false);
|
||||
message = channel.getToggleOffMessage();
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user