Allow spaces in commands
[reactos.git] / irc / TechBot / TechBot.IRCLibrary / IrcMessage.cs
index bab64de..f74ea80 100644 (file)
@@ -419,7 +419,7 @@ namespace TechBot.IRCLibrary
                {\r
                        foreach (char c in command)\r
                        {\r
-                               if (!Char.IsLetter(c))\r
+                               if (!Char.IsLetter(c) && !Char.IsWhiteSpace(c))\r
                                {\r
                                        return false;\r
                                }\r
@@ -428,7 +428,7 @@ namespace TechBot.IRCLibrary
                }\r
 \r
                private const string IrcSpecial = @"-[]\`^{}";\r
-               private const string IrcSpecialNonSpecs = @"_";\r
+               private const string IrcSpecialNonSpecs = @"_|";\r
 \r
                /// <summary>\r
                /// Returns wether a character is an IRC special character.\r