Explorar el Código

Add/Remove GroupChats as you Join/Part

pull/400/head
Greg Holmes hace 9 años
padre
commit
ae3f4f5488
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12
    0
      jpq/src/com/dmdirc/addons/jpq/JPQManager.java

+ 12
- 0
jpq/src/com/dmdirc/addons/jpq/JPQManager.java Ver fichero

@@ -93,6 +93,18 @@ public class JPQManager {
93 93
     void handleConnectionRemoved(final ServerDisconnectedEvent event) {
94 94
         removeGroupChatHandler(event.getConnection());
95 95
     }
96
+    
97
+    @VisibleForTesting
98
+    @Handler
99
+    void handleGroupChatAdded(final ChannelSelfJoinEvent event) {
100
+        addGroupChatHandler(event.getChannel());
101
+    }
102
+    
103
+    @VisibleForTesting
104
+    @Handler
105
+    void handleGroupChatRemoved(final ChannelSelfPartEvent event) {
106
+        addGroupChatHandler(event.getChannel());
107
+    }
96 108
 
97 109
     @VisibleForTesting
98 110
     @Handler

Loading…
Cancelar
Guardar