我有这段代码,它可以工作,但有时它会向该人发送 2 条消息。
Skype.addChatMessageListener(new ChatMessageAdapter() {
public void chatMessageReceived(ChatMessage received) throws SkypeException {
if (received.getContent().equals("!server")) {
// Sender
received.getSender().send("Comando Em Manutenção");
}
})
如何解决这个错误?