mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 19:02:17 -05:00
AddServerActivity: Add commands to server object on update/save
This commit is contained in:
parent
39824aeb00
commit
84fdcd8249
@ -219,6 +219,7 @@ public class AddServerActivity extends Activity implements OnClickListener
|
|||||||
server.setId((int) serverId);
|
server.setId((int) serverId);
|
||||||
server.setIdentity(identity);
|
server.setIdentity(identity);
|
||||||
server.setAutoJoinChannels(channels);
|
server.setAutoJoinChannels(channels);
|
||||||
|
server.setConnectCommands(commands);
|
||||||
|
|
||||||
Yaaic.getInstance().addServer(server);
|
Yaaic.getInstance().addServer(server);
|
||||||
}
|
}
|
||||||
@ -262,6 +263,7 @@ public class AddServerActivity extends Activity implements OnClickListener
|
|||||||
server.setId(this.server.getId());
|
server.setId(this.server.getId());
|
||||||
server.setIdentity(identity);
|
server.setIdentity(identity);
|
||||||
server.setAutoJoinChannels(channels);
|
server.setAutoJoinChannels(channels);
|
||||||
|
server.setConnectCommands(commands);
|
||||||
|
|
||||||
Yaaic.getInstance().updateServer(server);
|
Yaaic.getInstance().updateServer(server);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user