Removing multiple 'nick' properties in kiwi.gateway
authorDarren <darren@darrenwhitlen.com>
Fri, 11 Nov 2011 13:56:02 +0000 (13:56 +0000)
committerDarren <darren@darrenwhitlen.com>
Fri, 11 Nov 2011 13:56:02 +0000 (13:56 +0000)
client/js/front.js
client/js/gateway.js

index 41074a030c40da3a515fd4f63f201f3c1ab90796..fbee644e3e3507fa04b22c70998fdbf1a3fe548f 100644 (file)
@@ -320,7 +320,7 @@ kiwi.front = {
                     kiwi.front.ui.showChangeNick();
                 } else {
                     console.log("sending nick");
-                    kiwi.gateway.nick(msg.substring(1));
+                    kiwi.gateway.changeNick(msg.substring(1));
                 }
                 break;
 
index 86f7ebcf8cd142316e2ff14f524bc9a332117ebb..4295f0ea9cdfe3012eb05eace97ea687766f1813 100644 (file)
@@ -364,7 +364,7 @@ kiwi.gateway = {
     *   @param  {String}    new_nick    Our new nickname
     *   @param  {Function}  callback    A callback function
     */
-    nick: function (new_nick, callback) {
+    changeNick: function (new_nick, callback) {
         var data = {
             method: 'nick',
             args: {