diff options
author | louiz’ <louiz@louiz.org> | 2016-08-22 00:38:44 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-22 00:38:44 +0200 |
commit | 6776b827d243ec0e018eac8233c5df402030640e (patch) | |
tree | 261c35a77dacc928270601ac56424cab82de5b59 /src/database/database.hpp | |
parent | 992fa938951558f4515145c9b82af0123c979a29 (diff) | |
download | biboumi-6776b827d243ec0e018eac8233c5df402030640e.tar.gz biboumi-6776b827d243ec0e018eac8233c5df402030640e.tar.bz2 biboumi-6776b827d243ec0e018eac8233c5df402030640e.tar.xz biboumi-6776b827d243ec0e018eac8233c5df402030640e.zip |
Add a global configure ad-hoc command, with max history length
Diffstat (limited to 'src/database/database.hpp')
-rw-r--r-- | src/database/database.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database/database.hpp b/src/database/database.hpp index b11332e..d1be2fd 100644 --- a/src/database/database.hpp +++ b/src/database/database.hpp @@ -36,6 +36,7 @@ public: * Return the object from the db. Create it beforehand (with all default * values) if it is not already present. */ + static db::GlobalOptions get_global_options(const std::string& owner); static db::IrcServerOptions get_irc_server_options(const std::string& owner, const std::string& server); static db::IrcChannelOptions get_irc_channel_options(const std::string& owner, @@ -44,7 +45,9 @@ public: static db::IrcChannelOptions get_irc_channel_options_with_server_default(const std::string& owner, const std::string& server, const std::string& channel); - + static db::IrcChannelOptions get_irc_channel_options_with_server_and_global_default(const std::string& owner, + const std::string& server, + const std::string& channel); static void store_muc_message(const std::string& owner, const Iid& iid, time_point date, const std::string& body, const std::string& nick); |