diff options
Diffstat (limited to 'plugins/shortlink.py')
-rw-r--r-- | plugins/shortlink.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/shortlink.py b/plugins/shortlink.py index 65104a4..4f2c378 100644 --- a/plugins/shortlink.py +++ b/plugins/shortlink.py @@ -1,4 +1,4 @@ -#!/usr/bin/python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# --------------------------------------------------------------------------- #
@@ -28,7 +28,8 @@ SHORT_QR = 'http://chart.apis.google.com/chart?cht=qr&chs=350x350&chld=M|2&chl=% def shorter_raw(raw_in, text, url):
text = text.strip()
if text:
- msg = load_page(url % enidna(text).decode('utf-8'))
+ msg = load_page(url % text)
+ print(msg)
else:
msg = 'What?'
send_msg(raw_in, msg)
|