mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-22 19:24:53 +08:00
修复EventHack中频道消息处理不当导致空指针报错的问题
This commit is contained in:
parent
072a37b49b
commit
22a3f7aefb
@ -1,6 +1,6 @@
|
||||
## Core
|
||||
|
||||
VERSION = 0.7.1.2
|
||||
VERSION = 0.7.1.3
|
||||
|
||||
CODENAME = fuzhou
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user