[smuxi: 61/111] Frontend: fixed -T parameter of /benchmark_message_builder command



commit a7def02489f8280ca9df2d090021e3ac6d29fc2e
Author: Mirco Bauer <meebey meebey net>
Date:   Sat Jan 11 17:54:30 2014 +0100

    Frontend: fixed -T parameter of /benchmark_message_builder command

 src/Frontend/CommandManager.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Frontend/CommandManager.cs b/src/Frontend/CommandManager.cs
index 157a90f..5bf14f2 100644
--- a/src/Frontend/CommandManager.cs
+++ b/src/Frontend/CommandManager.cs
@@ -356,7 +356,7 @@ namespace Smuxi.Frontend
                     { "c|count=", v => count = Int32.Parse(v) },
                     { "m|append-message", v => appendMessage = true },
                     { "t|append-text", v => appendText = true },
-                    { "T|to-message", v => appendText = true },
+                    { "T|to-message", v => toMessage = true },
                 };
                 opts.Add("h|?|help", x => {
                     showHelp = true;
@@ -398,7 +398,9 @@ namespace Smuxi.Frontend
                 if (appendText) {
                     builder.AppendText("This is message with just text.");
                 }
-                var msg = builder.ToMessage();
+                if (toMessage) {
+                    var msg = builder.ToMessage();
+                }
             }
             stop = DateTime.UtcNow;
 


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