diff options
author | louiz’ <louiz@louiz.org> | 2018-03-18 19:33:07 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-03-18 19:33:07 +0100 |
commit | 9500bfd4ccb21b261fd8204180d78553704f7acc (patch) | |
tree | d675c05fc54fdbce7cc72e2cac6131945c407c2c /src/database | |
parent | 68e14800750042fdd371626c179692ba57076b73 (diff) | |
download | biboumi-9500bfd4ccb21b261fd8204180d78553704f7acc.tar.gz biboumi-9500bfd4ccb21b261fd8204180d78553704f7acc.tar.bz2 biboumi-9500bfd4ccb21b261fd8204180d78553704f7acc.tar.xz biboumi-9500bfd4ccb21b261fd8204180d78553704f7acc.zip |
Reflect message IDs in channel MUCs
fix #3283
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/database.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp index b1525d5..02c5b4f 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -2,9 +2,9 @@ #ifdef USE_DATABASE #include <database/database.hpp> -#include <uuid/uuid.h> #include <utils/get_first_non_empty.hpp> #include <utils/time.hpp> +#include <utils/uuid.hpp> #include <config/config.hpp> #include <database/sqlite3_engine.hpp> @@ -325,11 +325,7 @@ void Database::close() std::string Database::gen_uuid() { - char uuid_str[37]; - uuid_t uuid; - uuid_generate(uuid); - uuid_unparse(uuid, uuid_str); - return uuid_str; + return utils::gen_uuid(); } Transaction::Transaction() |