   db.all "SELECT key, value FROM metadata", (err, rows) ->
     if err then return cb "Couldn't get metadata for team #{team}: #{err}"
     for {key, value} in rows
-      if key is 'yes'
+      if value is 'yes'
         bot.mbMeta[key] = true
-      if key is 'no'
+      if value is 'no'
         bot.mbMeta[key] = false
       else
         bot.mbMeta[key] = value


    return

  # Karma query
  else if (/^karma\s+for\s+/i).test(msg)
    key = msg.replace(/^karma\s+for\s+/i, '').replace(/\?+$/, '')
    getKarma team, key, (err, current) ->

      return
    return

  # Karma decrement {{{2
  else if /\-\-(\s#.+)?$/.test(msg)
    if isDirect then return reply "You cannot secretly change the karma for something!"
    key = msg.split(/\-\-/)[0]
