Skip to content

Commit 52d3e48

Browse files
committed
Fix compliment command to respond with a message instead of an action
1 parent 9a67c26 commit 52d3e48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/attacks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def slap(text, action, nick, conn, is_nick_valid):
130130

131131
@asyncio.coroutine
132132
@hook.command
133-
def compliment(text, action, nick, conn, is_nick_valid):
133+
def compliment(text, nick, conn, is_nick_valid, message):
134134
"""<user> -- Makes the bot compliment <user>."""
135135
target = text.strip()
136136

@@ -147,7 +147,7 @@ def compliment(text, action, nick, conn, is_nick_valid):
147147
generator = textgen.TextGenerator(compliments["templates"], compliments["parts"], variables=variables)
148148

149149
# act out the message
150-
action(generator.generate_string())
150+
message(generator.generate_string())
151151

152152

153153
@hook.command(autohelp=False)

0 commit comments

Comments
 (0)