@Override
        public void run() {
                while (true) {
                        String msg = null;
                        try {
                                msg = chat.readLine();
                        } catch (IOException e1) {
                                // TODO Auto-generated catch block
                                e1.printStackTrace();
                        }
                        if (msg != null) {
                                if (DarkIRC.currentChan.name.equalsIgnoreCase(chat.getNick()) && DarkIRC.currentChan.type == Channel.DCCCHAT) {
                                        GUIMain.add_line("<" + chat.getNick() + ">: " + msg);
                                } else {
                                        Logs.makeLog("DCC_" + chat.getNick() + ".log", Logs.readLog("DCC_" + chat.getNick() + ".log") + "<" + chat.getNick() + ">: " + msg);
                                        for (int i = 0; i < DarkIRC.channelsList.size(); i++) {
                                                if (DarkIRC.channelsList.get(i).name.equalsIgnoreCase(chat.getNick()) && DarkIRC.channelsList.get(i).type == Channel.DCCCHAT) {
                                                        GUIMain.jTabbedPane2.setForegroundAt(i, Color.RED);
                                                }
                                        }
                                }
                        }
                }
        }