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.
This commit is contained in:
Alexandre Oliveira 2018-03-05 23:27:26 -03:00
parent f712abaaef
commit 89ba7e24f9
1 changed files with 1 additions and 1 deletions

View File

@ -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())
{