aboutsummaryrefslogtreecommitdiff
path: root/modules/title.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 11:43:34 +0100
committerGravatar jesopo2018-09-30 11:43:34 +0100
commit30641ce312ff5ce768df5c83e54083f959401f39 (patch)
tree923ba832e52cf6749650ca9c4791adb517fb360f /modules/title.py
parentFix piece of modules/define.py._get_definition( that was accepting a word or an (diff)
signature
We don't need to explicitly pass "buffer" through on command events
Diffstat (limited to 'modules/title.py')
-rw-r--r--modules/title.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/title.py b/modules/title.py
index 80b450f8..ee00bc37 100644
--- a/modules/title.py
+++ b/modules/title.py
@@ -13,7 +13,7 @@ class Module(ModuleManager.BaseModule):
if len(event["args"]) > 0:
url = event["args_split"][0]
else:
- url = event["buffer"].find(REGEX_URL)
+ url = event["target"].buffer.find(REGEX_URL)
if url:
url = re.search(REGEX_URL, url.message).group(0)
if not url: