Add nickname to fortune plugin response

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-05-30 18:21:12 -07:00
parent 061cf9ee7b
commit 94c4ef47ed

View File

@@ -35,7 +35,7 @@ class Fortune(Plugin):
word = parts[0] word = parts[0]
if word == "!fortune": if word == "!fortune":
fortune = random.choice(self.fortunes) fortune = random.choice(self.fortunes)
self.send_to(conn, channel, fortune) self.send_to(conn, channel, f"{who.nick}: {fortune}")
PLUGIN_TYPE = Fortune PLUGIN_TYPE = Fortune