summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-08-23 00:11:51 +0200
committerlouiz’ <louiz@louiz.org>2016-08-23 01:11:51 +0200
commitcfebca4d7c46959fc490cb9c72363d4ac3ee0c7a (patch)
tree1bafdcff85c2000573cdaf8398665135e3ebbf9d /src/bridge/bridge.hpp
parentf7fa34436a4d0f92d8d454ceb48d3df111c822b1 (diff)
downloadbiboumi-cfebca4d7c46959fc490cb9c72363d4ac3ee0c7a.tar.gz
biboumi-cfebca4d7c46959fc490cb9c72363d4ac3ee0c7a.tar.bz2
biboumi-cfebca4d7c46959fc490cb9c72363d4ac3ee0c7a.tar.xz
biboumi-cfebca4d7c46959fc490cb9c72363d4ac3ee0c7a.zip
Only save the logs if recordHistory global config option is true
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r--src/bridge/bridge.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index c26995f..0e1fbf4 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -13,6 +13,8 @@
#include <string>
#include <memory>
+#include <biboumi.h>
+
class BiboumiComponent;
class Poller;
@@ -215,6 +217,9 @@ public:
void trigger_on_irc_message(const std::string& irc_hostname, const IrcMessage& message);
std::unordered_map<std::string, std::shared_ptr<IrcClient>>& get_irc_clients();
std::set<char> get_chantypes(const std::string& hostname) const;
+#ifdef USE_DATABASE
+ void set_record_history(const bool val);
+#endif
private:
/**
@@ -295,6 +300,9 @@ private:
* TODO: send message history
*/
void generate_channel_join_for_resource(const Iid& iid, const std::string& resource);
+#ifdef USE_DATABASE
+ bool record_history { true };
+#endif
};
struct IRCNotConnected: public std::exception