Explorar el Código

Merge pull request #468 from csmith/master

Fix ConnectionHandler check.
pull/469/head
Greg Holmes hace 8 años
padre
commit
47812eb9cd

+ 1
- 1
channelwho/src/com/dmdirc/addons/channelwho/ConnectionHandler.java Ver fichero

@@ -107,7 +107,7 @@ public class ConnectionHandler {
107 107
     @VisibleForTesting
108 108
     @Handler
109 109
     void handleAwayEvent(final ChannelUserAwayEvent event) {
110
-        if (event.getChannel().getConnection().equals(connection)
110
+        if (event.getChannel().getConnection().equals(Optional.of(connection))
111 111
                 && !event.getReason().isPresent()) {
112 112
             event.setDisplayProperty(DisplayProperty.DO_NOT_DISPLAY, true);
113 113
             final boolean notseen = !users.containsKey(event.getUser().getNickname());

Loading…
Cancelar
Guardar