Remove double space between nick and action text.
authorTim Peterson <tim@timpeterson.org>
Mon, 9 Sep 2013 03:42:06 +0000 (23:42 -0400)
committerTim Peterson <tim@timpeterson.org>
Mon, 9 Sep 2013 03:50:14 +0000 (23:50 -0400)
server/irc/commands.js

index 352060bd47227f7fa08fc9b271ceff92e934bfc9..a08f9d98f41d28befe54b0b55c1867ab456ec3b5 100644 (file)
@@ -501,7 +501,7 @@ handlers = {
         if ((command.trailing.charAt(0) === String.fromCharCode(1)) && (command.trailing.charAt(command.trailing.length - 1) === String.fromCharCode(1))) {
             //CTCP request
             if (command.trailing.substr(1, 6) === 'ACTION') {
-                this.irc_connection.clientEvent('action', {nick: command.nick, ident: command.ident, hostname: command.hostname, channel: command.params[0], msg: command.trailing.substring(7, command.trailing.length - 1)});
+                this.irc_connection.clientEvent('action', {nick: command.nick, ident: command.ident, hostname: command.hostname, channel: command.params[0], msg: command.trailing.substring(8, command.trailing.length - 1)});
             } else if (command.trailing.substr(1, 4) === 'KIWI') {
                 tmp = command.trailing.substring(6, command.trailing.length - 1);
                 namespace = tmp.split(' ', 1)[0];