public static void Query(String nick) {
                boolean NoExist = true;
                for (int i = 0; i < DarkIRC.channelsList.size(); i++) {
                        if (DarkIRC.channelsList.get(i).name.equalsIgnoreCase(nick)) {
                                NoExist = false;
                                Logs.makeLog(DarkIRC.currentChan + ".log", GUIMain.get_text());
                                DarkIRC.currentChan = DarkIRC.channelsList.get(i);
                                GUIMain.jTabbedPane2.setSelectedIndex(i);
                                GUIMain.set_text(Logs.readLog(DarkIRC.currentChan + ".log"));
                        }
                }
                if (NoExist) {
                        Logs.makeLog(DarkIRC.currentChan + ".log", GUIMain.get_text());
                        GUIMain.set_text("");
                        DarkIRC.currentChan = new Channel(nick, Channel.PRIVATE);
                        DarkIRC.channelsList.add(DarkIRC.currentChan);
                        GUIMain.topicField.setVisible(false);
                        GUIMain.jScrollPane2.setVisible(false);
                        GUIMain.jTabbedPane2.addTab(DarkIRC.currentChan.name, null);
                        System.out.println(DarkIRC.channelsList.size() - 1);
                        GUIMain.jTabbedPane2.setSelectedIndex(DarkIRC.channelsList.size() - 1);
                }
        }