       return
     tidbit = factoid.tidbits.splice(tid, 1)
     msg.reply "Deleted tidbit: " + tidbit[0].verb + '|' + tidbit[0].tidbit
+    factoid.save()
+
+  robot.respond /what was that\??$/, (msg) ->
+    # FIXME this should be per room
+    return unless last_factoid
+    # FIXME - keep track of alias in last_factoid as well
+    # halkeye: That was 'rofl' (#315): <reply> I am also amused
+    # halkeye: That was 'that's what she said' => 'thats what she said' (#65): <reply> No, that's what HE said.
+    # halkeye: That was 'give me a weapon' (#863): <action> gives $weapon to $who;  vars used: { 'weapon' => [ 'a Biggoron Sword' ]};.
+    name = last_factoid.factoid.name
+    tidbit = last_factoid.tidbit
+    idx = last_factoid.factoid.tidbits.map((tid) -> tid.tidbit).indexOf(tidbit.tidbit)
+    response = []
+    response.push "That was"
+    response.push "'$last_alias' => " if last_factoid.alias # FIXME - if alias
+    response.push "'" + name + "'"
+    response.push "(#"+idx+") "
+    response.push tidbit.verb
+    response.push tidbit.tidbit
+    if last_factoid.last_vars # FIXME
+      response.push ";"
+      response.push "vars used:"
+      response.push util.inspect last_factoid.last_vars, { depth: null }
+    msg.reply response.join ' '
 
   robot.hear /^(.*)\??$/, (msg) =>
     factoid_name = msg.match[1].trim()

#   something random - Outputs a random factoid
#   hubot forget <factoid>#<num> - Deletes the <num>th response of <factoid>
#   hubot forget that - Deletes the last used response
#   <factoid> - Outputs a random reply that matches <factoid>
#
# Notes:

      return @get factoid
    output: (msg, factoid) ->
      tidbit = factoid.tidbit()
      # FIXME this should be per room
      last_factoid = {
        factoid: factoid,
        tidbit: tidbit
      }

      output = tidbit.tidbit
      if robot.variables?
