I have this code, and it works but sometimes it sends 2 messages to the person.
Skype.addChatMessageListener(new ChatMessageAdapter() {
public void chatMessageReceived(ChatMessage received) throws SkypeException {
if (received.getContent().equals("!server")) {
// Sender
received.getSender().send("Comando Em Manutenção");
}
})
How to solve this bug?