From bd3caa8407c27a6cfb87c1e8cc6265fee3672513 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 16 Oct 2016 00:51:41 +0200 Subject: [PATCH] Fixed .convert f -> c --- src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs b/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs index d4f9df0c..12a4b8f3 100644 --- a/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs +++ b/src/NadekoBot/Modules/Utility/Commands/UnitConversion.cs @@ -148,10 +148,10 @@ namespace NadekoBot.Modules.Utility break; } //from Kelvin to target - switch (targetUnit.Triggers.First()) + switch (targetUnit.Triggers.First().ToUpperInvariant()) { case "C": - res = value - 273.15m; //celcius! + res = res - 273.15m; //celcius! break; case "F": res = res * (9m / 5m) - 459.67m;