Allow mentions in PMs

(imported from commit 4d354eb3abb153706a577312724fa40fd2559f92)
This commit is contained in:
Leo Franchi
2013-05-24 15:15:40 -04:00
parent aedb81c490
commit bd921c6a04

View File

@@ -200,9 +200,6 @@ def mentioned_in_message(message):
#
# TODO(leo) There is a minor regression in that we no longer
# match just-first-names or just-last-names
if message.recipient.type != Recipient.STREAM:
return (False, set())
wildcards = ['all', 'everyone']
potential_mentions = find_mentions_re.findall(message.content)