           msg: 'You Already Up-Voted This'
 
     socket.on 'dnvote', (id) ->
-      error =
-        attack: "window.location = 'https://www.google.com/search?q=dont+hack+me+bro'"
-      return socket.emit 'error', error if id?
+      return socket.emit 'error', attackError if id?
       unless socket.handshake.address in dnvotes[id]
         dnvotes[id].push socket.handshake.address
         db.findById id, (err, stack) ->

      req.end()

    socket.on 'share', (data) ->
      error = 'Name Your Stack Correctly'
      return socket.emit 'error', error unless data? and data.name?
      return socket.emit 'error', error unless String(data.name).length < 30
      db.create data, (err, stack) ->
        upvotes[stack._id] = []
        dnvotes[stack._id] = []

          msg: 'You Already Down-Voted This'

    socket.on 'join', (room) ->
      return socket.emit 'error', attackError unless room in rooms
      console.log "joined room: #{room}"
      socket.join room
      db.findSort (err, stacks) ->
