File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 17
17
18
18
use Whateverable;
19
19
use Whateverable::Bits;
20
+ use Whateverable::Discordable;
20
21
use Whateverable::FootgunDB;
21
22
use Whateverable::Userlist;
22
23
@@ -66,6 +67,7 @@ multi method irc-privmsg($msg where IRC::Client::Message::Privmsg::Channel) {
66
67
channel => $ msg . channel,
67
68
timestamp => timestampish,
68
69
nick => $ msg . nick,
70
+ bridged => ($ msg . nick ~~ FromDiscord). so ,
69
71
}
70
72
}
71
73
my % mail = $ db-tell . read ;
@@ -91,6 +93,7 @@ multi method irc-privmsg-channel($msg where { m:r/^ \s* $<who>=<.&irc-nick> ‘:
91
93
my $ normalized = normalize-weirdly $ who ;
92
94
my % seen := $ db-seen . read ;
93
95
return $ . NEXT unless % seen {$ normalized }: exists ; # haven't seen them talk ever
96
+ return $ . NEXT if % seen {$ normalized }<bridged >; # we don't know status of bridged users
94
97
# TODO ↓ this should go through all nicknames on the channel
95
98
my $ previous-nick = % seen {$ normalized }<nick >;
96
99
return $ . NEXT if self . userlist($ msg ){$ previous-nick }; # previous nickname still on the channel
You can’t perform that action at this time.
0 commit comments