       @name = name
       @tidbits = []
       @alias = false
-      @readonly = false
-      if data.readonly
-        @readonly = true
+      @readonly = true
+      if data.readonly? && data.readonly == false
+        @readonly = false
       if data.alias
         @alias = data.alias
       else if data.tidbits

        msg.send "I am " + output
      else
        msg.send [factoid.name, tidbit.verb, output].join ' '
    setAddressed: (msg) =>
      msg.message.addressed = true
      @set msg

    factoid.readonly = protect
    factoid.save()
    msg.reply "Okay."

  robot.respond /alias (.*?) => (.*?)$/, robot.factoid.alias

  robot.router.get "/#{robot.name}/factoid/:factoid", (req, res) ->
    factoid_name = req.params.factoid
