better engrish

This commit is contained in:
John McLear 2013-02-01 13:16:02 +00:00
parent 66f6981bb3
commit 062330ff75
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "ep_email_notifications", "name": "ep_email_notifications",
"description": "Subscribe to a pad and recieve an email when someone edits your pad", "description": "Subscribe to a pad and recieve an email when someone edits your pad",
"version": "0.0.2", "version": "0.0.3",
"author": { "author": {
"name": "johnyma22", "name": "johnyma22",
"email": "john@mclear.co.uk", "email": "john@mclear.co.uk",

View file

@ -48,10 +48,10 @@ exports.notifyBegin = function(padId){
if(!userIsOnPad){ if(!userIsOnPad){
console.debug("Emailing "+recipient +" about a new begin update"); console.debug("Emailing "+recipient +" about a new begin update");
server.send({ server.send({
text: "Your pad at "+urlToPads+padId +" is being edited, we're just emailing you let you know :)", text: "Your pad at "+urlToPads+padId +" is being edited, we're just emailing you let you know :)\n\n -- This plugin is in alpha state, can you help fund it's development? https://github.com/johnmclear/ep_email_notifications",
from: fromName+ "<"+fromEmail+">", from: fromName+ "<"+fromEmail+">",
to: recipient, to: recipient,
subject: "Someone begin editing "+padId subject: "Someone started editing "+padId
}, function(err, message) { console.log(err || message); }); }, function(err, message) { console.log(err || message); });
} }
else{ else{
@ -79,7 +79,7 @@ exports.notifyEnd = function(padId){
if(!userIsOnPad){ if(!userIsOnPad){
console.debug("Emailing "+recipient +" about a pad finished being updated"); console.debug("Emailing "+recipient +" about a pad finished being updated");
server.send({ server.send({
text: "Your pad at "+urlToPads+padId +" has finished being edited, we're just emailing you let you know :) The changes look like this:" + changesToPad, text: "Your pad at "+urlToPads+padId +" has finished being edited, we're just emailing you let you know :) \n\n The changes look like this: \n" + changesToPad,
from: fromName+ "<"+fromEmail+">", from: fromName+ "<"+fromEmail+">",
to: recipient, to: recipient,
subject: "Someone finished editing "+padId subject: "Someone finished editing "+padId