mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-09 12:48:00 -05:00
IRCConnection: Execute commands on connect
This commit is contained in:
parent
fa49f86ef8
commit
c414b737e2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user