public void onMessage(String channel, String sender, String login, String hostname, String message) {
                if (channel.equalsIgnoreCase(DarkIRC.currentChan.name)) {
                        GUIMain.add_line("<" + sender + ">:" + 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") + "<" + sender + ">:" + message + "\n");
                                        GUIMain.jTabbedPane2.setForegroundAt(i, Color.RED);
                                        // GUIMain.jTabbedPane2.setIconAt(i, new
                                        // ImageIcon(this.getClass().getResource("Black-Internet-icon.png")));
                                }
                        }
                }
        }