]> granicus.if.org Git - ejabberd/commitdiff
Fix compilation error
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sun, 10 Jul 2016 05:45:24 +0000 (08:45 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sun, 10 Jul 2016 05:45:24 +0000 (08:45 +0300)
src/mod_mam.erl

index 811e1b51d5b28ea0b83f33b46a7274a1c8199845..10eb098da3f3fa32562da425529bb4eba3a604cc 100644 (file)
@@ -210,7 +210,7 @@ get_room_config(X, RoomState, _From, Lang) ->
                                children = [{xmlcdata, Val}]}]},
     X ++ [XField].
 
-set_room_option(_Acc, <<"muc#roomconfig_mam">>, Vals, Lang) ->
+set_room_option(_Acc, <<"muc#roomconfig_mam">> = Opt, Vals, Lang) ->
     try
        Val = case Vals of
                  [<<"0">>|_] -> false;