Problem Description: The API sendChat function has two overloads, one of which accepts a function callback as an argument. This argument is called to process the chat message rather than sending it to the chat window. The callback contains a single argument which is an ARRAY of chat messages to be processed by the function. When sending a chat message with multiple lines to the callback, the array contains one element per line, but each element of the array in the call back contains information only for the final line/message passed in the msg argument of the sendChat function call. The intended behavior of this function, presumably, is for each element in the ops array to contain information for each line in the msg argument. Steps to Reproduce: Here is a function which will duplicate the error: function SendChatBug() { text = "FOO\nFOO\nBAR"; //text to use as msg //call sendChat with function callback sendChat("api", text, function(ops) { log(ops.length); //check the length of the ops array; expected value = 3 log(ops); //dump the contents of ops; incorrect behavior displayed here }); } Here is the JSON result of the above log(ops); line, with additional lines added for readability [{"who":"api","type":"general","content":"BAR","playerid":"API","avatar":false,"inlinerolls":{}},{"who":"api","type":"general","content":"BAR","playerid":"API","avatar":false,"inlinerolls":{}},{"who":"api","type":"general","content":"BAR","playerid":"API","avatar":false,"inlinerolls":{}}] You can see that the content of each of the message results in the ops argument is "BAR" even though two of the lines in MSG had a value of FOO. This is unexpected behavior. Environment Details: OS: Windows 7 Browser: Chrome 35.0.1916.153 Feel free to contact me for more information.