Bladeren bron

Modified Wolfram Alpha results beautifier.

tags/3.1.0
Teknikode 4 jaren geleden
bovenliggende
commit
b1301ff307
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3
    2
      Modules/Wolfram Alpha/Wolfram_Alpha.cs

+ 3
- 2
Modules/Wolfram Alpha/Wolfram_Alpha.cs Bestand weergeven

@@ -53,9 +53,10 @@ namespace Combot.Modules.Plugins
}
char[] tails = {';', ' '};
resultMessage = resultMessage
.Replace(Environment.NewLine, "; ")
.Replace("\r\n", "; ")
.Replace("\n", "; ")
.Replace(" | ", ", ")
.Replace(" | ", "; ")
.Replace(" | ", ": ")
.TrimEnd(tails);
SendResponse(command.MessageType, command.Location, command.Nick.Nickname, queryMessage);
SendResponse(command.MessageType, command.Location, command.Nick.Nickname, resultMessage);

Laden…
Annuleren
Opslaan