Sfoglia il codice sorgente

Merge pull request #337 from csmith/master

Changes to channel commands done in core.
pull/338/head
Greg Holmes 9 anni fa
parent
commit
5a1f58f131

+ 2
- 2
contactlist/src/com/dmdirc/addons/contactlist/ContactListCommand.java Vedi File

@@ -62,9 +62,9 @@ public class ContactListCommand extends Command implements IntelligentCommand {
62 62
             final CommandArguments args, final CommandContext context) {
63 63
         final ChannelCommandContext chanContext = (ChannelCommandContext) context;
64 64
 
65
-        final ContactListListener listener = new ContactListListener(chanContext.getChannel());
65
+        final ContactListListener listener = new ContactListListener(chanContext.getGroupChat());
66 66
         listener.addListeners();
67
-        chanContext.getChannel().getUsers().forEach(listener::clientAdded);
67
+        chanContext.getGroupChat().getUsers().forEach(listener::clientAdded);
68 68
     }
69 69
 
70 70
     @Override

+ 1
- 1
ui_swing/src/com/dmdirc/addons/ui_swing/commands/ChannelSettings.java Vedi File

@@ -70,7 +70,7 @@ public class ChannelSettings extends Command implements IntelligentCommand {
70 70
     @Override
71 71
     public void execute(@Nonnull final FrameContainer origin,
72 72
             final CommandArguments args, final CommandContext context) {
73
-        dialogProvider.displayOrRequestFocus(((ChannelCommandContext) context).getChannel());
73
+        dialogProvider.displayOrRequestFocus(((ChannelCommandContext) context).getGroupChat());
74 74
     }
75 75
 
76 76
     @Override

Loading…
Annulla
Salva