Skip to content

Commit

Permalink
Merge pull request #121 from substack/channel-undefined
Browse files Browse the repository at this point in the history
fix crash from undefined channel var
  • Loading branch information
James Halliday committed Jul 17, 2019
2 parents ebf4be0 + e97f4ab commit 760eadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Commander.prototype.process = function (line) {
self.view.writeLine(`${cmd} is not a command, type /help for commands`)
} else {
line = line.trim()
if (line !== '' && channel !== "!status") {
if (line !== '' && self.channel !== "!status") {
self.cabal.publish({
type: 'chat/text',
content: {
Expand Down

0 comments on commit 760eadc

Please sign in to comment.