Fixed .convert f -> c

This commit is contained in:
Kwoth 2016-10-16 00:51:41 +02:00
parent 00cb7621b5
commit bd3caa8407

View File

@ -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;