diff options
| author | 2018-09-09 13:20:59 +0100 | |
|---|---|---|
| committer | 2018-09-09 13:20:59 +0100 | |
| commit | 2d4dbf922f98f5b454e77c0bf8d16aa0ea65310f (patch) | |
| tree | 04b873f28c0197e8b38db306840b5342cce1e5ae /modules/bitly.py | |
| parent | WOOP WOOP THAT'S THE SOUND OF LINKS FOR TWEETS (diff) | |
| signature | ||
h8 everything right now
Diffstat (limited to 'modules/bitly.py')
| -rw-r--r-- | modules/bitly.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bitly.py b/modules/bitly.py index cd69bb4e..7736a8c5 100644 --- a/modules/bitly.py +++ b/modules/bitly.py @@ -16,7 +16,7 @@ class Module(object): usage="<url>") def shortlink(self, event): - url = event if type(event) is str else event["url"] + url = event["url"] if not re.match(REGEX_URL, url): url = "http://%s" % url |
