    },
  
 -  sendMsg: function (aMsg) {
-+  prepareForSending: function(aOm, aCount) null,
++  prepareForSending: function(aOutgoingMessage, aCount) null,
 +  sendMsg: function(aMsg) {
      throw Cr.NS_ERROR_NOT_IMPLEMENTED;
    },

# User Arlo Breault <arlolra@gmail.com>
# Date 1409207291 25200
#      Wed Aug 27 23:28:11 2014 -0700
# Node ID 956828be4d6f6303c203d15156b42e5729b9cbbc
# Parent  f54bd01f595b76e980d6661b7316fd8738b10119
An API to support OTR-like protocols in Instantbird


            this._account.countBytes(baseMessage);
   },
-  sendMsg: function(aMessage) {
+  prepareForSending: function(aOutgoingMessage, aCount) {
     // Split the message by line breaks and send each one individually.
-    let messages = aMessage.split(/[\r\n]+/);
+    let messages = aOutgoingMessage.message.split(/[\r\n]+/);
 
     let maxLength = this.getMaxMessageLength();
 
