Search code examples
javaskype4java

Duplicate message requests in Skype4Java


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?


Solution

  • This seems to be a known issue in Skype4Java. Also, according to the author's comment, the project has been abandoned, but there is another one based on it: Skype Java API.

    From the README:

    This project is a mavenization and release of Skype4Java with several bug fixes.