Closed sklnd closed 13 years ago
Small fix for stock coloring: diff --git a/plugins/stock.py b/plugins/stock.py index 7389547..ce3ff71 100644 --- a/plugins/stock.py +++ b/plugins/stock.py @@ -23,7 +23,7 @@ def stock(inp): if results['company'] == "": return "Unknown ticker symbol %s" % inp
- if results['change'][1] == '-':
+ if results['change'][0] == '-':
results['color'] = "5"
else:
results['color'] = "3"
Done, thanks!
We need stock lookups !!!!