public void onTopic(String channel, String topic, String setBy, long date, boolean changed) {
                if (channel.equalsIgnoreCase(DarkIRC.currentChan.name)) {
                        String topic_message =
                                        DarkIRC.AppLang.getString("topic_msg").replace("{~channel~}", channel).replace("{~topic~}", topic).replace("{~nick~}", setBy)
                                                        .replace("{~date~}", new Date(date).toString());
                        GUIMain.add_line(topic_message);
                        GUIMain.topicField.setText(topic);
                }
                for (int i = 0; i < DarkIRC.channelsList.size(); i++) {
                        if (DarkIRC.channelsList.get(i).name.equalsIgnoreCase(channel)) {
                                DarkIRC.channelsList.get(i).topic = topic;
                        }
                }
        }