Separated the SendMessage function, which is apparently slightly different for Server and Channel.