public void onPart(String channel, String sender, String login, String hostname) {
                String part_message = DarkIRC.AppLang.getString("part_msg").replace("{~nick~}", sender).replace("{~channel~}", channel);
                if (!sender.equalsIgnoreCase(DarkIRC.bot.getNick())) {
                        if (channel.equalsIgnoreCase(DarkIRC.currentChan.name)) {
                                GUIMain.add_line(part_message);

                                GUIMain.userListModel.removeAllElements();
                                User[] u = DarkIRC.bot.getUsers(DarkIRC.currentChan.name);
                                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") + part_message + "\n");
                                        }
                                }
                        }
                }
        }