From 015c90eb702f5f466071d653128181b844cb2142 Mon Sep 17 00:00:00 2001 From: clienthax Date: Sat, 21 Aug 2021 18:12:42 +0100 Subject: [PATCH] cmd cleanup --- .../com/cutthecord/commands/commands/CmdCtc.java | 13 ------------- .../cutthecord/commands/commands/CmdSpoilerImg.java | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdCtc.java b/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdCtc.java index 24066b3..64ddbc5 100644 --- a/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdCtc.java +++ b/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdCtc.java @@ -23,19 +23,6 @@ public class CmdCtc { m.invoke(StoreStream.getUserSettings(), enabled); } catch (Exception e) { System.out.println("Failed to call StoreStream.getUserSettings().setLeakChannels"); - - System.out.println("Declared"); - for (Method m : StoreStream.getUserSettings().getClass().getDeclaredMethods()) { - System.out.println(m.getName()+" "+ m.toString()); - } - - System.out.println(); - System.out.println("Methods"); - for (Method m : StoreStream.getUserSettings().getClass().getMethods()) { - System.out.println(m.getName()+" "+ m.toString()); - } - - e.printStackTrace(); return "Failed to call StoreStream.getUserSettings().setLeakChannels"; } return "CTC: Successfully set channelleak state."; // TODO use notification diff --git a/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdSpoilerImg.java b/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdSpoilerImg.java index f01e617..2a5ef6e 100644 --- a/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdSpoilerImg.java +++ b/resources/patches/slashcommands/code/src/main/java/com/cutthecord/commands/commands/CmdSpoilerImg.java @@ -13,7 +13,7 @@ public class CmdSpoilerImg implements RawMsgHandler { try { // Added by Supplemental patch //noinspection JavaReflectionMemberAccess - final Method m = StoreStream.getUserSettings().getClass().getDeclaredMethod("setImageSpoiler", Boolean.class); + final Method m = StoreStream.getUserSettings().getClass().getDeclaredMethod("setImageSpoiler", boolean.class); m.invoke(StoreStream.getUserSettings(), true); } catch (Exception e) { System.out.println("Failed to call StoreStream.getUserSettings().setImageSpoiler(true)");