public void onJoin(String channel, String sender, String login, String hostname) {
                String join_message = DarkIRC.AppLang.getString("join_msg").replace("{~nick~}", sender).replace("{~channel~}", channel);
                // System.out.println(join_message);
                if (channel.equalsIgnoreCase(DarkIRC.currentChan.name)) {
                        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());
                        }
                        GUIMain.add_line(join_message);
                } 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") + join_message + "\n");
                                }
                        }
                }

        }