We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e645932 commit 5bc11f3Copy full SHA for 5bc11f3
1 file changed
plugins/correction.py
@@ -19,6 +19,9 @@ def correction(match, conn, nick, chan, message):
19
replace = groups[1]
20
if find == replace:
21
return "really dude? you want me to replace {} with {}?".format(find, replace)
22
+
23
+ if not find.strip(): # Replacing empty or entirely whitespace strings is spammy
24
+ return "really dude? you want me to replace nothing with {}?".format(replace)
25
26
for item in conn.history[chan].__reversed__():
27
name, timestamp, msg = item
0 commit comments