Browse Source

Add/Remove GroupChats as you Join/Part

pull/400/head
Greg Holmes 9 years ago
parent
commit
ae3f4f5488
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      jpq/src/com/dmdirc/addons/jpq/JPQManager.java

+ 12
- 0
jpq/src/com/dmdirc/addons/jpq/JPQManager.java View File

@@ -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…
Cancel
Save