#781 Enabled Dim. Trans. to work on offline servers.

This commit is contained in:
CrazyPants committed 2014-07-05 20:34:40 +08:00
1 parent 9040a64dd0
commit 296bd08514
9 files changed
+24 -24

No files matched your search

@@ -24,7 +24,7 @@ public class HyperCubeRegister {
private final List<Channel> publicChannels = new ArrayList<Channel>();
private final List<Channel> publicChannelsRO = Collections.unmodifiableList(publicChannels);
private final Map<UUID, List<Channel>> userChannels = new HashMap<UUID, List<Channel>>();
private final Map<String, List<Channel>> userChannels = new HashMap<String, List<Channel>>();
//private Configuration config;
private HyperCubeConfig conf;
@@ -45,7 +45,7 @@ public class HyperCubeRegister {
userChannels.putAll(conf.getUserChannels());
}
public synchronized List<Channel> getChannelsForUser(UUID user) {
public synchronized List<Channel> getChannelsForUser(String user) {
List<Channel> result = userChannels.get(user);
if(result == null) {
result = new ArrayList<Channel>();