Skip to content

Commit

Permalink
Make parsing authentication commands work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Aug 2, 2012
1 parent 4127915 commit beffcd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger.js
Expand Up @@ -30,9 +30,9 @@ function getIrcClient(server, nick, auth) {
for (var i = 0; i < auth.length; i++) {
var command = auth[i],
result;
if ((result = command.match(/^\/msg\s+(\S+)\s+(.*)$/i))) {
if ((result = command.match(/^\/msg\s+(\S+)\s+(.*)/i))) {
client.say(result[1], result[2]);
} else {
} else if (/S/.test(command)) {
throw new Error("Unknown auth command:" + command);
}
}
Expand Down

0 comments on commit beffcd5

Please sign in to comment.