|
@@ -34,8 +34,6 @@ import com.dmdirc.commandparser.commands.context.CommandContext;
|
34
|
34
|
import com.dmdirc.interfaces.CommandController;
|
35
|
35
|
import com.dmdirc.ui.input.AdditionalTabTargets;
|
36
|
36
|
|
37
|
|
-import com.google.common.eventbus.EventBus;
|
38
|
|
-
|
39
|
37
|
import javax.inject.Inject;
|
40
|
38
|
|
41
|
39
|
/**
|
|
@@ -47,20 +45,15 @@ public class ContactListCommand extends Command implements IntelligentCommand {
|
47
|
45
|
public static final CommandInfo INFO = new BaseCommandInfo("contactlist",
|
48
|
46
|
"contactlist - show a contact list for the current channel",
|
49
|
47
|
CommandType.TYPE_CHANNEL);
|
50
|
|
- /** Event bus to listen to events on. */
|
51
|
|
- private final EventBus eventBus;
|
52
|
48
|
|
53
|
49
|
/**
|
54
|
50
|
* Creates a new instance of this command.
|
55
|
51
|
*
|
56
|
52
|
* @param controller The controller to use for command information.
|
57
|
|
- * @param eventBus Event bus to listen to events on
|
58
|
53
|
*/
|
59
|
54
|
@Inject
|
60
|
|
- public ContactListCommand(final CommandController controller,
|
61
|
|
- final EventBus eventBus) {
|
|
55
|
+ public ContactListCommand(final CommandController controller) {
|
62
|
56
|
super(controller);
|
63
|
|
- this.eventBus = eventBus;
|
64
|
57
|
}
|
65
|
58
|
|
66
|
59
|
/** {@inheritDoc} */
|
|
@@ -69,8 +62,7 @@ public class ContactListCommand extends Command implements IntelligentCommand {
|
69
|
62
|
final CommandArguments args, final CommandContext context) {
|
70
|
63
|
final ChannelCommandContext chanContext = (ChannelCommandContext) context;
|
71
|
64
|
|
72
|
|
- final ContactListListener listener = new ContactListListener(chanContext.getChannel(),
|
73
|
|
- eventBus);
|
|
65
|
+ final ContactListListener listener = new ContactListListener(chanContext.getChannel());
|
74
|
66
|
listener.addListeners();
|
75
|
67
|
listener.clientListUpdated(chanContext.getChannel().getChannelInfo().getChannelClients());
|
76
|
68
|
}
|