Merge branch 'ctcp-fix' of https://github.com/TimPeterson/KiwiIRC into TimPeterson...
authorDarren <darren@darrenwhitlen.com>
Tue, 10 Sep 2013 16:11:04 +0000 (17:11 +0100)
committerDarren <darren@darrenwhitlen.com>
Tue, 10 Sep 2013 16:11:04 +0000 (17:11 +0100)
1  2 
server/irc/commands.js

index e8c08ea01e2da3f60236faf02f0960324d640298,a08f9d98f41d28befe54b0b55c1867ab456ec3b5..4778c9eeac55dc2777715b96c112615cdf93ceda
@@@ -396,10 -396,10 +396,10 @@@ handlers = 
                  ident: command.ident,
                  hostname: command.hostname,
                  channel: command.params[0],
-                 msg: command.trailing.substr(1, command.trailing.length - 2)
+                 msg: command.trailing.substring(1, command.trailing.length - 1)
              });
          } else {
 -            namespace = (command.params[0] == this.irc_connection.nick || command.params[0] == '*') ?
 +            namespace = (command.params[0].toLowerCase() == this.irc_connection.nick.toLowerCase() || command.params[0] == '*') ?
                  'user' :
                  'channel';