Don't ping of all lowercase initials

This commit is contained in:
Kiooeht 2011-07-20 22:10:06 -07:00
parent 6e3c97fb58
commit 048caa527a

View file

@ -1802,7 +1802,8 @@ class PesterWindow(MovingWindow):
if self.config.memoSound(): if self.config.memoSound():
if self.config.nameSound(): if self.config.nameSound():
initials = self.userprofile.chat.initials() initials = self.userprofile.chat.initials()
search = r"\b[%s%s][%s%s]\b" % (initials[0].lower(), initials[0], initials[1].lower(), initials[1]) initials = (initials, "%s%s" % (initials[0].lower(), initials[1]), "%s%s" % (initials[0], initials[1].lower()))
search = r"\b%s\b" % ("|".join(initials))
m = convertTags(msg, "text") m = convertTags(msg, "text")
if m.find(":") <= 3: if m.find(":") <= 3:
m = m[m.find(":"):] m = m[m.find(":"):]