From bfe2545c01808099250c67b5f83edff5e1c55416 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Thu, 24 May 2018 01:28:29 +0200 Subject: mod_muc_sql: Fix export to SQL The "host" column is supposed to hold the MUC host name. --- src/mod_muc_sql.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mod_muc_sql.erl b/src/mod_muc_sql.erl index 4812239b8..d078b64f1 100644 --- a/src/mod_muc_sql.erl +++ b/src/mod_muc_sql.erl @@ -378,7 +378,7 @@ export(_Server) -> ?SQL_INSERT( "muc_room", ["name=%(Name)s", - "host=%(Host)s", + "host=%(RoomHost)s", "server_host=%(Host)s", "opts=%(SOpts)s"])]; false -> @@ -396,7 +396,7 @@ export(_Server) -> ?SQL_INSERT( "muc_registered", ["jid=%(SJID)s", - "host=%(Host)s", + "host=%(RoomHost)s", "server_host=%(Host)s", "nick=%(Nick)s"])]; false -> -- cgit v1.2.3