Package ecks.Utility

Examples of ecks.Utility.UserModes


        m.applyChanges(modes);
        Map<Character, Character> xlate = curProtocol.getPrefixMap();

        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())) {
                        tUser = user.substring(1).toLowerCase();
                        tMode = "+" + xlate.get(user.substring(0, 1).toCharArray());
                    }
                }

                z = Users.get(tUser);
                if (tMode != null)
                    t.applyChanges(tMode);
                cm.put(z, t); // add this client -> mode mapping to channel

            }

        if (Channels.containsKey(channel.toLowerCase())) {
View Full Code Here


        }
    }

    public static void chanJoin(int ts, String channel, String user) {
        if (Channels.containsKey(channel.toLowerCase())) {
            Channels.get(channel.toLowerCase()).clientmodes.put(Users.get(user.toLowerCase()), new UserModes());
            Users.get(user.toLowerCase()).chans.add(channel.toLowerCase());
            Hooks.hook(Hooks.Events.E_JOINCHAN, channel, user, "");
        } else { // services joining an empty channel
            chanBurst(ts, channel, "+nt", new String[]{user});
        }
View Full Code Here

TOP

Related Classes of ecks.Utility.UserModes

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.