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:
parent
f712abaaef
commit
89ba7e24f9
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue