Przeglądaj źródła

Add an is on channel method to channel.

Issue 3811

Change-Id: I1660850b96b56fbb3d3a47441a504295d38ed1ec
Reviewed-on: http://gerrit.dmdirc.com/922
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.3rc1
Gregory Holmes 14 lat temu
rodzic
commit
5c2c7eb49e
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9
    0
      src/com/dmdirc/Channel.java

+ 9
- 0
src/com/dmdirc/Channel.java Wyświetl plik

@@ -262,6 +262,15 @@ public class Channel extends MessageTarget implements ConfigChangeListener {
262 262
         return tabCompleter;
263 263
     }
264 264
 
265
+    /**
266
+     * Are we on the channel?
267
+     *
268
+     * @return true iff we're on the channel
269
+     */
270
+    public boolean isOnChannel() {
271
+        return onChannel;
272
+    }
273
+
265 274
     /**
266 275
      * Called when we join this channel. Just needs to output a message.
267 276
      */

Ładowanie…
Anuluj
Zapisz