Collection bots = BotsRunner.getRepInstance().getBots();
Iterator iter = bots.iterator();
while (iter.hasNext())
{
Bot bot = (Bot)iter.next();
Iterator channels_it = bot.getJoinedChannels().iterator();
while (channels_it.hasNext())
{
Channel channel = ((Channel)channels_it.next());
StringBuffer key = new StringBuffer();
key
.append(Config.getRepInstance().getString("LUCENE_DIR"))
.append(File.separator)
.append(bot.getName())
.append("-")
.append(bot.getServer().getServerName())
.append("-")
.append(channel.getName().substring(1));
if (submission.getChannel() == null ||
submission.getChannel().equals(""))