Skip to content

Commit

Permalink
Merge pull request #3 from sgunturi/master
Browse files Browse the repository at this point in the history
Remove hash character auto-add.
  • Loading branch information
Joe Warren committed Jun 17, 2014
2 parents acd8a4d + 6206275 commit 8e6eaa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Slack.prototype.send = function(message,cb) {

var url = 'https://' + this.domain + '.slack.com/services/hooks/incoming-webhook?token=' + this.token;
var channel = message.channel || this.defaultChannel;
if(channel.substring(0,1) !== '#') channel = '#' + channel;
var options = {
channel: channel,
text: message.text,
Expand Down
2 changes: 1 addition & 1 deletion test/testSlack.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('test send', function(){

it('should callback with ok', function(done){
var input = {
channel: 'test',
channel: '#test',
text: 'hello',
username: 'test',
icon_emoji: 'smile',
Expand Down

0 comments on commit 8e6eaa9

Please sign in to comment.