Skip to content

Commit

Permalink
Parser: Support "/html" chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSRG committed Aug 9, 2016
1 parent 77772e1 commit cf5f7df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/command-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ class CommandParser {
if (!room && msg.substr(0, 8) === '/invite ') {
return this.parse((App.config.parser.tokens[0] || '') + 'joinroom ' + msg.substr(8), room, by);
}
if (msg.substr(0, 6) === '/html ') {
return this.parse(msg.substr(6), room, by);
}
let userid = Text.toId(by);
if (room && this.data.sleep[room]) return; /* Sleeping room */
if (!this.data.exceptions[userid] && this.monitor.isLocked(userid)) return; /* User locked */
Expand Down

0 comments on commit cf5f7df

Please sign in to comment.