public void onMode(String channel, String sourceNick, String sourceLogin, String sourceHostname, String mode) {
                if (channel.equalsIgnoreCase(DarkIRC.currentChan.name)) {
                        GUIMain.add_line("*" + sourceNick + " set mode " + mode + "\n");
                        User[] u = DarkIRC.bot.getUsers(DarkIRC.currentChan.name);
                        GUIMain.userListModel.removeAllElements();
                        for (int i = 0; i < u.length; i++) {
                                GUIMain.userListModel.addElement(u[i].getPrefix() + u[i].getNick());
                        }
                } else {
                        for (int i = 0; i < DarkIRC.channelsList.size(); i++) {
                                // System.out.println(DarkIRC.channelsList.get(i).name + "  =  "
                                // + channel);
                                if (DarkIRC.channelsList.get(i).name.equalsIgnoreCase(channel)) {
                                        Logs.makeLog(DarkIRC.channelsList.get(i) + ".log", Logs.readLog(DarkIRC.channelsList.get(i) + ".log") + "*" + sourceNick + " set mode " + mode + "\n");
                                }
                        }
                }
                // System.out.println("channel:" + channel + " SourceNick:" + sourceNick
                // + " mode:" + mode);
        }