 
   @listen: (robot) ->
     return false if Dialog.listened
-    robot.hear /.*/i, (msg) ->
+    robot.hear /./i, (msg) ->
+
       dialog = Dialog.getDialog msg.envelope.user.name, msg.envelope.room
+      return if dialog.startMsgMd5 is md5 "#{dialog.key}:#{msg.envelope.message.text}"
       dialog?.callback.call dialog, msg
     Dialog.listened = true
 

    @key = Dialog.getKey @user, @room
    @data = {}
    @listen callback
    Dialog.addDialog @

  set: (key, value) ->

# Dialog.getDialog user, room
# Dialog.addDialog dialog
# Dialog.deleteDialog user, room

md5 = require "MD5"

class Dialog

