-
-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bot Mode spec has been ratified (ircv3/ircv3-specifications#495). Since we haven't published a release with support for this message tag yet, it's a very easy decision to take *right now* that we'll only support the finalized spec and not the WIP version.
- Loading branch information
Showing
2 changed files
with
2 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -658,16 +658,10 @@ def test_rule_match_privmsg_bot_tag(mockbot): | |
regex = re.compile(r'.*') | ||
rule = rules.Rule([regex]) | ||
|
||
line = '@draft/bot :[email protected] PRIVMSG #sopel :Hi!' | ||
pretrigger = trigger.PreTrigger(mockbot.nick, line) | ||
assert not list(rule.match(mockbot, pretrigger)), ( | ||
'Line with `draft/bot` tag must be ignored' | ||
) | ||
|
||
line = '@bot :[email protected] PRIVMSG #sopel :Hi!' | ||
pretrigger = trigger.PreTrigger(mockbot.nick, line) | ||
assert not list(rule.match(mockbot, pretrigger)), ( | ||
'Line with final/ratified `bot` tag must be ignored' | ||
'Line with `bot` tag must be ignored' | ||
) | ||
|
||
|
||
|