Add nickname to fortune plugin response
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user