                 }
             }
             
-            //[[NSNotificationCenter chatCenter] postNotificationOnMainThreadWithName:MVChatConnectionGotRawMessageNotification object:self userInfo:@{ @"message": rawString, @"messageData": data, @"sender": (senderString ?: @""), @"command": (commandString ?: @""), @"parameters": parameters, @"outbound": @(NO), @"fromServer": @(fromServer), @"message-tags": intentOrTagsDictionary }]
-            
             if let handler = commandHandlers[command!] {
                 let msg = IRCMessage(sender: sender, user: user, host: host, command: command, intentOrTags: intentOrTagDict, parameters: parameters)
                 handler(message: msg)

    private func processIncomingMessage(data : NSData, fromServer : Bool) {

        if var messageString = String(data: data, encoding: NSUTF8StringEncoding) {
            //TODO(Olivier): Check if line ending causes problems
            //const char *line = (const char *)[data bytes];
            //            NSUInteger len = data.length;
            //            const char *end = line + len - 2; // minus the line endings
            //
            //            if( *end != '\x0D' )
            //            end = line + len - 1; // this server only uses \x0A for the message line ending, lets work with it
            var currentIndex = 0
            let len = messageString.characters.count
            var sender : String?

        chatConnection!.writeData(vdata, withTimeout: -1, tag: 0)
        
        //print("WROTE: \(String(data: vdata, encoding: NSUTF8StringEncoding))")
    }
    
    func sendStringMessage(message : String, immedtiately now : Bool) {
