1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-08-13 16:53:50 -04:00

IRCConnection: Execute commands on connect

This commit is contained in:
Sebastian Kaspari 2010-04-25 12:43:31 +02:00
parent fa49f86ef8
commit c414b737e2

View File

@ -32,6 +32,7 @@ import org.jibble.pircbot.User;
import org.yaaic.R;
import org.yaaic.Yaaic;
import org.yaaic.command.CommandParser;
import org.yaaic.model.Broadcast;
import org.yaaic.model.Channel;
import org.yaaic.model.Conversation;
@ -162,6 +163,13 @@ public class IRCConnection extends PircBot
joinChannel(channel);
}
}
// execute commands
CommandParser parser = CommandParser.getInstance();
for (String command : server.getConnectCommands()) {
parser.parse(command, server, server.getConversation(ServerInfo.DEFAULT_NAME), service);
}
}
/**