[smuxi/experiments/configurable_message_patterns: 6/6] Engine: fixed FormatException in Session.CommandConfig() by escaping {} for String.Format()



commit 4685a282664f87d107bb28d2a9e92094c741dcdc
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Feb 16 19:21:13 2014 +0100

    Engine: fixed FormatException in Session.CommandConfig() by escaping {} for String.Format()

 src/Engine/Session.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine/Session.cs b/src/Engine/Session.cs
index d640992..d082b4d 100644
--- a/src/Engine/Session.cs
+++ b/src/Engine/Session.cs
@@ -791,7 +791,7 @@ namespace Smuxi.Engine
                     if (!removeParam.StartsWith("MessagePatterns/")) {
                         builder.AppendErrorText(
                             _("Invalid config remove key: '{0}'. Valid remove " +
-                              "keys: MessagePatterns/{ID}."),
+                              "keys: MessagePatterns/{{ID}}."),
                             removeParam
                         );
                         AddMessageToFrontend(cd, builder.ToMessage());


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