1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-02-16 23:10:11 -05:00

Database: Load commands from database on server object population

This commit is contained in:
Sebastian Kaspari 2010-04-25 12:43:07 +02:00
parent 4d3a7c2ecc
commit fa49f86ef8

View File

@ -405,6 +405,10 @@ public class Database extends SQLiteOpenHelper
ArrayList<String> channels = this.getChannelsByServerId(server.getId());
server.setAutoJoinChannels(channels);
// Load commands to execute after connect
ArrayList<String> commands = this.getCommandsByServerId(server.getId());
server.setConnectCommands(commands);
return server;
}