Package ecks.Utility

Examples of ecks.Utility.Client


    {
        String oldid = oldnick.toLowerCase();
        String newid = newnick.toLowerCase();

        try {
        Client client = Users.get(oldid);
        client.uid = newnick; // keep their uid in step with their nickname...
        client.signon = ts;

        if (oldid.equals(newid)) return;
View Full Code Here


    {
        Users.put(
                tokens[1].toLowerCase(),
                // client constructor takes the following:
                // uid hops signon modes ident host althost uplink svsid numericip realname nickid
                new Client(
                        tokens[1],
                        Integer.parseInt(tokens[2]),
                        Long.parseLong(tokens[3]),
                        tokens[4],
                        tokens[5],
View Full Code Here

        if (users.length != 0)
            for (String user : users) {
                UserModes t = new UserModes();
                String tUser, tMode;
                Client z;

                tUser = user.toLowerCase();
                tMode = null;
                for (Map.Entry<Character, Character> e : xlate.entrySet()) {
                    if (user.startsWith(e.getKey().toString())) {
View Full Code Here

        {
            Logging.warn("PROTOCOL", "Tried to part user " + user + "  from a channel " + channel + " that didn't exist");
            return;
        }

        Client who;

        if (Users.containsKey(user.toLowerCase())) // we had better
        {
            who = Users.get(user.toLowerCase());
        } else {
            Logging.warn("PROTOCOL", "Tried to part a user that didn't exist");
            return;
        }

        if (Channels.get(channel.toLowerCase()).clientmodes.containsKey(who)) { // we had better...
            who.chans.remove(channel.toLowerCase());
            Channels.get(channel.toLowerCase()).clientmodes.remove(who);
            Hooks.hook(Hooks.Events.E_PARTCHAN, channel, user, null);
        } else {
            Logging.warn("PROTOCOL", "Tried to part user " + user + " from channel " + channel + " that they weren't on");
            Logging.info("PROTOCOL", "User is: " + who.toString());
            Logging.info("PROTOCOL", "Chan is: " + Channels.get(channel.toLowerCase()).toString());
        }

        if (Channels.get(channel.toLowerCase()).clientmodes.size() == 0) // channel is empty, remove
        {
View Full Code Here

TOP

Related Classes of ecks.Utility.Client

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.