/away command support
authorDarren <darren@darrenwhitlen.com>
Wed, 8 Oct 2014 09:47:31 +0000 (10:47 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 8 Oct 2014 09:47:31 +0000 (10:47 +0100)
client/src/misc/clientuicommands.js

index 8a9abbea9bc43332247cbb049b27ba76f813f78b..4b0e75b06d63ec94ddbd568977686da2bbe11bd4 100644 (file)
@@ -81,6 +81,7 @@
         'command:server':      serverCommand,
         'command:whois':       whoisCommand,
         'command:whowas':      whowasCommand,
+        'command:away':        awayCommand,
         'command:encoding':    encodingCommand,
         'command:channel':     channelCommand,
         'command:applet':      appletCommand,
     }
 
 
+    function awayCommand (ev) {
+        this.app.connections.active_connection.gateway.raw('AWAY :' + ev.params.join(' '));
+    }
+
+
     function encodingCommand (ev) {
         var that = this;