1.1 --- a/src/org/sonews/daemon/command/GroupCommand.java Sun Aug 29 18:17:37 2010 +0200
1.2 +++ b/src/org/sonews/daemon/command/GroupCommand.java Tue Sep 13 19:08:15 2011 +0200
1.3 @@ -20,8 +20,9 @@
1.4
1.5 import java.io.IOException;
1.6 import org.sonews.daemon.NNTPConnection;
1.7 -import org.sonews.storage.Channel;
1.8 +import org.sonews.storage.Group;
1.9 import org.sonews.storage.StorageBackendException;
1.10 +import org.sonews.storage.StorageManager;
1.11
1.12 /**
1.13 * Class handling the GROUP command.
1.14 @@ -78,9 +79,9 @@
1.15 {
1.16 final String[] command = line.split(" ");
1.17
1.18 - Channel group;
1.19 + Group group;
1.20 if (command.length >= 2) {
1.21 - group = Channel.getByName(command[1]);
1.22 + group = StorageManager.current().getGroup(command[1]);
1.23 if (group == null || group.isDeleted()) {
1.24 conn.println("411 no such news group");
1.25 } else {