added messageSent handler to ProtocolHandler
Merge branch 'nick'