Restore .action() as a convenience function
authorJack Allnutt <m2ys4u@Gmail.com>
Thu, 20 Oct 2011 10:03:41 +0000 (11:03 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Thu, 20 Oct 2011 10:03:41 +0000 (11:03 +0100)
client/js/gateway.js

index 1be71c396767231ddc5577bb51d4c64b7c82fb34..6b15932bda2cf5e8da32bd695e8eefe415c78831 100644 (file)
@@ -170,6 +170,10 @@ kiwi.gateway = {
         kiwi.gateway.sendData(data, callback);
     },
 
+    action: function (target, msg, callback) {
+        this.ctcp(true, 'ACTION', target, msg, callback);
+    },
+
     join: function (channel, key, callback) {
         var data = {
             method: 'join',