[smuxi/experiments/certfp: 17/55] Engine: also check name when looking up protocols



commit 106bbeb30f51d83c9498e080f2e6afab65bb07a5
Author: Mirco Bauer <meebey meebey net>
Date:   Sat Dec 28 16:08:05 2013 +0100

    Engine: also check name when looking up protocols

 src/Engine/Protocols/ProtocolManagerFactory.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine/Protocols/ProtocolManagerFactory.cs b/src/Engine/Protocols/ProtocolManagerFactory.cs
index 62b3493..c0140ea 100644
--- a/src/Engine/Protocols/ProtocolManagerFactory.cs
+++ b/src/Engine/Protocols/ProtocolManagerFactory.cs
@@ -127,7 +127,8 @@ namespace Smuxi.Engine
         public ProtocolManagerInfoModel GetProtocolManagerInfoByAlias(string alias)
         {
             foreach (ProtocolManagerInfoModel info in _ProtocolManagerTypes.Keys) {
-                if (info.Alias.Equals(alias, StringComparison.InvariantCultureIgnoreCase)) {
+                if (info.Alias.Equals(alias, StringComparison.InvariantCultureIgnoreCase) ||
+                    info.Name.Equals(alias, StringComparison.InvariantCultureIgnoreCase)) {
                     return info;
                 }
             }


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