From 1926aafacb0d12abe8f4f556babb7a0ab066b5d4 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Jun 2019 21:23:38 +0100 Subject: [PATCH] `format._tweet()` takes a `server` param now --- modules/tweets/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tweets/__init__.py b/modules/tweets/__init__.py index e58dbb6a..edaa3dd9 100644 --- a/modules/tweets/__init__.py +++ b/modules/tweets/__init__.py @@ -160,7 +160,7 @@ class Module(ModuleManager.BaseModule): tweet = self._from_username(target) if tweet: - tweet_str = format._tweet(self.exports, tweet) + tweet_str = format._tweet(self.exports, event["server"], tweet) event["stdout"].write(tweet_str) else: event["stderr"].write("Invalid tweet identifiers provided") @@ -177,6 +177,6 @@ class Module(ModuleManager.BaseModule): tweet_id = event["match"].group(1) tweet = self._from_id(tweet_id) if tweet: - tweet_str = format._tweet(self.exports, tweet) + tweet_str = format._tweet(self.exports, event["server"], tweet) event["stdout"].write(tweet_str)