Skip to content

Commit

Permalink
Merge pull request #147 from matrix-org/luke/issue-142
Browse files Browse the repository at this point in the history
Improve pastebin message
  • Loading branch information
lukebarnard1 committed Aug 30, 2016
2 parents ff8a045 + 9aa4383 commit 657e319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bridge/MatrixHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,9 @@ MatrixHandler.prototype._sendIrcAction = Promise.coroutine(
.splice(0, 2)
.join('_') + '.txt';

// somenick_2016-08-03_10:40:48.txt
fileName = ircClient.nick + '_' + fileName;

let result = {};

try {
Expand Down Expand Up @@ -974,7 +977,7 @@ MatrixHandler.prototype._sendIrcAction = Promise.coroutine(
let bigFileIrcAction = IrcAction.fromMatrixAction(mAction);

// Replace "Posted a File with..."
bigFileIrcAction.text = 'Posted a long message: ' + mAction.text;
bigFileIrcAction.text = mAction.text;

// Notify the IRC side of the uploaded text file
yield this.ircBridge.sendIrcAction(ircRoom, ircClient, bigFileIrcAction);
Expand Down

0 comments on commit 657e319

Please sign in to comment.