diff --git a/bot/plugins/isup.py b/bot/plugins/isup.py index a5b26c7..7455ab7 100644 --- a/bot/plugins/isup.py +++ b/bot/plugins/isup.py @@ -24,11 +24,12 @@ class Useless(DatabasePlugin): address = args['
'] if not address.startswith('http://'): address = 'https://{}'.format(address) - parsed = urlparse(address) try: requests.head(address) state = 'up' except requests.ConnectionError: state = 'down' - return '{}://{} seems to be {}'.format(parsed.scheme, parsed.netloc, state) + + parsed = urlparse(address) + return '\x02{}://{}\x02 seems to be \x02{}\x02'.format(parsed.scheme, parsed.netloc, state)