~sircmpwn/ChatSharp

89ba7e24f9303ba878ecc44188de3f9f8ad1f65e — Alexandre Oliveira 4 years ago f712aba
Check ISUPPORT against null and string.Empty

- Some IRC networks may specify ISUPPORT tokens without values,
  which the parser considers as being null, resulting in a crash.
1 files changed, 1 insertions(+), 1 deletions(-)

M ChatSharp/Handlers/ServerHandlers.cs
M ChatSharp/Handlers/ServerHandlers.cs => ChatSharp/Handlers/ServerHandlers.cs +1 -1
@@ 24,7 24,7 @@ namespace ChatSharp.Handlers
                }
                // TODO: Consider doing this differently
                // TODO: Allow users to specify other things to handle
                if (value != null)
                if (!string.IsNullOrEmpty(value))
                {
                    switch (key.ToUpper())
                    {