[smuxi/stable] Frontend: populate CMD* hook variables for command-manager hooks



commit b49ead1f9be5284635bd8534d3fd56ce9f46737a
Author: Mirco Bauer <meebey meebey net>
Date:   Thu Dec 26 00:33:07 2013 +0100

    Frontend: populate CMD* hook variables for command-manager hooks

 src/Frontend/CommandManager.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend/CommandManager.cs b/src/Frontend/CommandManager.cs
index 397db86..384dcd0 100644
--- a/src/Frontend/CommandManager.cs
+++ b/src/Frontend/CommandManager.cs
@@ -163,6 +163,7 @@ namespace Smuxi.Frontend
                 var hooks = new HookRunner("frontend", "command-manager",
                                            "command-" + filteredCmd);
                 hooks.EnvironmentVariables.Add("FRONTEND_VERSION", FrontendVersion);
+                hooks.Environments.Add(new CommandHookEnvironment(cmd));
                 hooks.Environments.Add(new ChatHookEnvironment(cmd.Chat));
                 if (pm != null) {
                     hooks.Environments.Add(new ProtocolManagerHookEnvironment(pm));


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