Package ecks.services

Examples of ecks.services.SrvHelp


    public CommandDesc getDesc() {
        return Desc;
    }

    public void handle_command(Service who, String user, String replyto, String arguments) {
        SrvHelp temp = ((SrvHelp) who);
        String args[] = arguments.split(" ");
        String tU = args[0].toLowerCase();
        if (args.length == 1) {
            if (temp.getChannels().containsKey(tU)) {
                temp.getChannels().remove(tU); // drop the account
                Generic.srvPart(who, tU, "Channel Unregistered.");
                Generic.curProtocol.outPRVMSG(who, replyto, "Channel removed.");
                Logging.info("SRVHELP", "Channel " + tU + " unregistered by " + user + ".");
            } else Generic.curProtocol.outPRVMSG(who, replyto, "\u0002Error:\u0002 No such channel is registered");
        } else
View Full Code Here


    public CommandDesc getDesc() {
        return Desc;
    }

    public void handle_command(Service who, String user, String replyto, String arguments) {
        SrvHelp temp = ((SrvHelp) who);
        String args[] = arguments.split(" ");
        if (args.length == 1) {
            String ch = args[0].toLowerCase();
            if (!temp.getChannels().containsKey(ch)) {
                temp.getChannels().put(ch, new SrvHelp_channel(ch));
                Generic.curProtocol.outPRVMSG(who, replyto, "\u0002" + Generic.Users.get(user).uid + ":\u0002 Registration Succeeded!");
                Logging.info("SRVHELP", "Channel " + ch + " registered by " + user + ".");
                Generic.curProtocol.srvJoin(who, ch, "+stn");
                Generic.curProtocol.outSETMODE(who, ch, "+o", who.getname());
            } else Generic.curProtocol.outPRVMSG(who, replyto, "\u0002Error:\u0002 Channel is already registered.");
View Full Code Here

TOP

Related Classes of ecks.services.SrvHelp

Copyright © 2018 www.massapicom. 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.