Skip to content

Commit 93331b4

Browse files
authored
Merge pull request CloudBotIRC#122 from linuxdaemon/gonzobot+correction-fix
Make sure only the original user can correct themselves - correction.py
2 parents 514fac2 + ce12e72 commit 93331b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/correction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def correction(match, conn, nick, chan, message):
3636
message("Correction, <{}> {}".format(name, mod_msg))
3737

3838
msg = ireplace(msg, find, replace)
39-
if nick.lower() in name.lower():
39+
if nick.lower() == name.lower():
4040
conn.history[chan].append((name, timestamp, msg))
4141
return
4242
else:

0 commit comments

Comments
 (0)