private void registerScripts() {
		if (IRCClient.scriptManager.reload()) {
			editScript.removeAll();
			for (Script script : IRCClient.scriptManager.scripts) {
				JMenuItem item = new JMenuItem(script.getName());
				item.addActionListener(new ScriptOpener(this, script.getName()));
				editScript.add(item);
			}
			editScript.add(new JSeparator());
			editScript.add(reloadScripts);
			for (ChannelFrame channel : channels) {
				channel.refreshScripts();
			}
		}
	}