Skip to content
Snippets Groups Projects
Commit da28d13c authored by echicken's avatar echicken
Browse files

Include units parameter when falling through to assuming param is a location name.

Otherwise the temperature will appear to be hot hot hot but actually be in kelvin.
parent 8c0863d5
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,8 @@ function get_params(cmd, nick, srv) {
}
}
// Maybe a city name
return { q : cmd.join(' ').split(',')[0] };
ret.q = cmd.join(' ').split(',')[0];
return ret;
}
function temperature_str(n) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment