[polari] ircParser: Add /close command



commit 795dc68ad93274df4fc7c4ebd9eca6aed9774eaf
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Mar 9 18:54:28 2016 +0100

    ircParser: Add /close command
    
    It's simply a synonym of /part, so no reason to not add it for users
    used to it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763385

 src/ircParser.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/ircParser.js b/src/ircParser.js
index db07b04..948ff2b 100644
--- a/src/ircParser.js
+++ b/src/ircParser.js
@@ -21,6 +21,7 @@ const knownCommands = {
     WHOIS: N_("/WHOIS <nick> - requests information on <nick>"),
     */
 
+    CLOSE: N_("/CLOSE [<channel>] [<reason>] - closes <channel>, by default the current one"),
     HELP: N_("/HELP [<command>] - displays help for <command>, or a list of available commands"),
     INVITE: N_("/INVITE <nick> [<channel>] - invites <nick> to <channel>, or the current one"),
     JOIN: N_("/JOIN <channel> - joins <channel>"),
@@ -219,7 +220,8 @@ const IrcParser = new Lang.Class({
                     }));
                 break;
             }
-            case 'PART': {
+            case 'PART':
+            case 'CLOSE': {
                 let room = null;;
                 let name = argv[0];
                 if (name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]