Examples of IrcCommand


Examples of org.jaibo.api.IrcCommand

    }

    @Override
    public void execute() {
        if (this.object != null) {
            this.object.getExtensionMessenger().getCommandSender().sendIrcCommand(new IrcCommand("QUIT", ":" + quitMessage));
        }
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

        return checkPassed;
    }

    @Override
    protected void action() {
        this.object.getExtensionMessenger().getCommandSender().sendIrcCommand(new IrcCommand("PONG", this.pongAnswer));
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

    @Override
    public void execute() {
        String[] channels = this.object.getChannels();

        for (String channel : channels) {
            this.object.getExtensionMessenger().getCommandSender().sendIrcCommand(new IrcCommand("JOIN",
                    String.format("%s", channel)));
        }
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

    @Override
    protected void action() {
        String nickName = this.getNickName();

        this.object.getExtensionMessenger().getCommandSender().sendIrcCommand(new IrcCommand("nick", nickName));
        this.object.setCurrentNickName(nickName);

        if (!loggedIn) {
            this.object.getExtensionMessenger().getCommandSender().sendIrcCommand(new IrcCommand("user",
                    String.format("%s * ** : %s", this.getIdentity(), this.getInformation())));

            this.loggedIn = true;
        }
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

    @Override
    public void execute() {
        if (!this.authenticated && this.authenticationNeed) {

            this.object.getExtensionMessenger().getCommandSender().sendIrcCommand(new IrcCommand("AUTH",
                    String.format("%s %s", this.username, this.password)));

            if (this.setHiddenHostNeeded) {
                Object coreObject = (Object)this.object;

                this.object.getExtensionMessenger().getCommandSender().sendIrcCommand(new IrcCommand("MODE",
                        String.format("%s +x", coreObject.getCurrentNickName())));
            }

            this.authenticated = true;
        }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

        this.resetSendTimer();
    }

    @Override
    public void sendNotice(String username, String message) {
        this.sender.sendIrcCommand(new IrcCommand("NOTICE", String.format("%s :%s", username, message)));
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

        this.sender.sendIrcCommand(new IrcCommand("NOTICE", String.format("%s :%s", username, message)));
    }

    @Override
    public void sendPrivateMessage(String username, String message) {
        this.commandsQueue.add(new IrcCommand("PRIVMSG", String.format("%s :%s", username, message)));
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

        this.commandsQueue.add(new IrcCommand("PRIVMSG", String.format("%s :%s", username, message)));
    }

    @Override
    public void sendChannelMessage(String channel, String message) {
        this.commandsQueue.add(new IrcCommand("PRIVMSG", String.format("%s :%s", channel, message)));
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

    }

    @Override
    public void sendBroadcastMessage(String[] channels, String message) {
        for(String channel : channels) {
            this.commandsQueue.add(new IrcCommand("PRIVMSG", String.format("%s :%s", channel, message)));
        }
    }
View Full Code Here

Examples of org.jaibo.api.IrcCommand

        }
    }

    @Override
    public void setTopic(String channel, String topicContent) {
        this.sender.sendIrcCommand(new IrcCommand("TOPIC", String.format("%s :%s", channel, topicContent)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.