summaryrefslogtreecommitdiff
path: root/src/bridge/history_limit.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-08-27 22:30:44 +0200
committerlouiz’ <louiz@louiz.org>2017-08-27 22:37:46 +0200
commitfcaffb9e778ad5962e69dc23c1fc91eb59a27945 (patch)
tree99c8270467b67b2dab90235c3ff1147daf1b9422 /src/bridge/history_limit.hpp
parent25243f53c2479e2fda0f1a05d1589c8214b70b4b (diff)
downloadbiboumi-fcaffb9e778ad5962e69dc23c1fc91eb59a27945.tar.gz
biboumi-fcaffb9e778ad5962e69dc23c1fc91eb59a27945.tar.bz2
biboumi-fcaffb9e778ad5962e69dc23c1fc91eb59a27945.tar.xz
biboumi-fcaffb9e778ad5962e69dc23c1fc91eb59a27945.zip
Add support for the "history" node on MUC join
Supports the "seconds", "maxstanzas", "since" and "maxchars" (but only =0) attributes. fix #3270
Diffstat (limited to 'src/bridge/history_limit.hpp')
-rw-r--r--src/bridge/history_limit.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bridge/history_limit.hpp b/src/bridge/history_limit.hpp
new file mode 100644
index 0000000..9c75256
--- /dev/null
+++ b/src/bridge/history_limit.hpp
@@ -0,0 +1,8 @@
+#pragma once
+
+// Default values means no limit
+struct HistoryLimit
+{
+ int stanzas{-1};
+ std::string since{};
+};