summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-10-01 12:27:17 +0100
committerPeter Powell <petpow@saberuk.com>2019-10-01 12:32:40 +0100
commit4d2391ee094553cc11ce84b7b81d39bdb89ec48e (patch)
treeccfb999be0acd0880a102f79a108bb4a52f448eb /include
parent32d96016bd21fd5dff54503df4222c10662e57e5 (diff)
Show the list modes which have variable list lengths in 005.
Diffstat (limited to 'include')
-rw-r--r--include/listmode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/listmode.h b/include/listmode.h
index 66c3b8446..6941b5aeb 100644
--- a/include/listmode.h
+++ b/include/listmode.h
@@ -120,6 +120,9 @@ class CoreExport ListModeBase : public ModeHandler
*/
ListModeBase(Module* Creator, const std::string& Name, char modechar, const std::string& eolstr, unsigned int lnum, unsigned int eolnum, bool autotidy);
+ /** Determines whether some channels have longer lists than others. */
+ bool HasVariableLength() const { return chanlimits.size() > 1; }
+
/** Get limit of this mode on a channel
* @param channel The channel to inspect
* @return Maximum number of modes of this type that can be placed on the given channel