Skip to content
Permalink
Browse files

Merge pull request #3796 from ArchonMegalon/master

Found out, that Discord actually changes a bit a Url (adds a '/' befo…
  • Loading branch information...
ArchonMegalon committed Aug 2, 2019
2 parents e94362b + d07145f commit b1c530daf5424489e592fec8a66a6429dbd35443
Showing with 8 additions and 2 deletions.
  1. +2 −0 Chummer/Program.cs
  2. +6 −2 ChummerHub.Client/Backend/NamedPipeManager.cs
@@ -291,6 +291,8 @@ static void Main()
if (strArgs[i].Contains("/plugin"))
{
string whatplugin = strArgs[i].Substring(strArgs[i].IndexOf("/plugin") + 8);
//some external apps choose to add a '/' before a ':' even in the middle of an url...
whatplugin = whatplugin.TrimStart(':');
int endplugin = whatplugin.IndexOf(':');
string parameter = whatplugin.Substring(endplugin + 1);
whatplugin = whatplugin.Substring(0, endplugin);
@@ -124,8 +124,12 @@ public bool Write(string text, int connectTimeout = 3000)
}
catch (TimeoutException e)
{
Log.Warn(e);
return false;
if (text != "__EXIT__")
{
Log.Warn(e);
return false;
}
return true;
}
catch (Exception e)
{

0 comments on commit b1c530d

Please sign in to comment.
You can’t perform that action at this time.