[smuxi: 66/111] Frontend: fixed /benchmark_message_builder command with smuxi-server < 0.10



commit 5b5371aa564bb624f5decab4f9a6ef541ac9a4b9
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Jan 12 00:19:16 2014 +0100

    Frontend: fixed /benchmark_message_builder command with smuxi-server < 0.10

 src/Frontend/CommandManager.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Frontend/CommandManager.cs b/src/Frontend/CommandManager.cs
index 4ce484c..75bbc9c 100644
--- a/src/Frontend/CommandManager.cs
+++ b/src/Frontend/CommandManager.cs
@@ -368,7 +368,7 @@ namespace Smuxi.Frontend
                     showHelp = true;
                     var writer = new StringWriter();
                     opts.WriteOptionDescriptions(writer);
-                    f_Session.AddMessageToFrontend(
+                    AddMessageToFrontend(
                         cmd,
                         CreateMessageBuilder().
                             AppendHeader("{0} usage", cmd.Command).
@@ -384,7 +384,7 @@ namespace Smuxi.Frontend
                     return;
                 }
             } catch (Exception ex) {
-                f_Session.AddMessageToFrontend(
+                AddMessageToFrontend(
                     cmd,
                     CreateMessageBuilder().
                         AppendErrorText("Invalid parameter: {0}", ex.Message).
@@ -443,7 +443,7 @@ namespace Smuxi.Frontend
                 (stop - start).TotalMilliseconds,
                 (stop - start).TotalMilliseconds / count
             );
-            f_Session.AddMessageToFrontend(cmd, builder.ToMessage());
+            AddMessageToFrontend(cmd, builder.ToMessage());
         }
 
         private void Unknown(CommandModel cmd)


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