   import Serverboards.Plugin
   alias Serverboards.Repo
   alias Serverboards.Settings.Model
+
+  @nochange "%%NOCHANGE%%"
 
   def start_link(options) do
     {:ok, es} = EventSourcing.start_link [name: :settings] ++ options

      sec ->
        #Logger.debug("#{inspect sec}")
        if data != sec.data do
          Repo.update( Model.Settings.changeset(sec, %{data: data}) )
          MOM.Channel.send(:settings, %MOM.Message{payload: %{ type: :update, section: section, data: data }})
          Serverboards.Event.emit("settings.updated", %{ section: section, data: data}, ["settings.view"])

          fields = Enum.map(fields, fn f ->
            name = Map.get(f, "name", "")
            if String.ends_with? name, "_pw" do
              Map.put(f, "value", @nochange)
            else
              Map.put(f, "value", Map.get( values, name, nil ))
            end
