We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f9bcf1 commit 81fe227Copy full SHA for 81fe227
bin/Notable.p6
@@ -60,12 +60,13 @@ multi method irc-to-me($msg where
60
}
61
62
my &clearish = {
63
+ my @clear-commands = <clear reset delete default>;
64
do if .args[1].starts-with: @shortcuts.any ~ ‘:’ {
- m/^ \s* [clear|reset|delete] \s* $/
65
+ m/^ \s* @clear-commands \s* $/
66
} else {
- m/^ \s* [clear|reset|delete] \s+ <topic> \s* $/
67
+ m/^ \s* @clear-commands \s+ <topic> \s* $/
68
||
- m/^ \s* <topic> \s+ [clear|reset|delete] \s* $/
69
+ m/^ \s* <topic> \s+ @clear-commands \s* $/
70
71
72
multi method irc-to-me($msg where &clearish) {
0 commit comments