From 22a3f7aefb21f98be7dc2b2871083ac22779ce2e Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Tue, 7 Jun 2022 16:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DEventHack=E4=B8=AD=E9=A2=91?= =?UTF-8?q?=E9=81=93=E6=B6=88=E6=81=AF=E5=A4=84=E7=90=86=E4=B8=8D=E5=BD=93?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=A9=BA=E6=8C=87=E9=92=88=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../java/cc/sukazyo/cono/morny/GradleProjectConfigures.java | 4 ++-- .../cc/sukazyo/cono/morny/bot/event/OnEventHackHandle.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index 972a331..97a0d67 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ ## Core -VERSION = 0.7.1.2 +VERSION = 0.7.1.3 CODENAME = fuzhou diff --git a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java index 26be073..2f7fdbe 100644 --- a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java +++ b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java @@ -4,7 +4,7 @@ package cc.sukazyo.cono.morny; * the final field that will be updated by gradle automatically. */ public class GradleProjectConfigures { - public static final String VERSION = "0.7.1.2"; + public static final String VERSION = "0.7.1.3"; public static final String CODENAME = "fuzhou"; - public static final long COMPILE_TIMESTAMP = 1654487392325L; + public static final long COMPILE_TIMESTAMP = 1654590942119L; } diff --git a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnEventHackHandle.java b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnEventHackHandle.java index a85a980..7189857 100644 --- a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnEventHackHandle.java +++ b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnEventHackHandle.java @@ -84,12 +84,12 @@ public class OnEventHackHandle extends EventListener { @Override public boolean onChannelPost (@Nonnull Update update) { - return onEventHacked(update, update.channelPost().chat().id(), update.channelPost().from().id()); + return onEventHacked(update, update.channelPost().chat().id(), update.channelPost().chat().id()); } @Override public boolean onEditedChannelPost (@Nonnull Update update) { - return onEventHacked(update, update.editedChannelPost().chat().id(), update.editedChannelPost().from().id()); + return onEventHacked(update, update.editedChannelPost().chat().id(), update.editedChannelPost().chat().id()); } @Override