From 048caa527ae23e7770af7514697b19e3c8a43d42 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Wed, 20 Jul 2011 22:10:06 -0700 Subject: [PATCH] Don't ping of all lowercase initials --- pesterchum.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pesterchum.py b/pesterchum.py index 80c1e00..c73d4ea 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -1802,7 +1802,8 @@ class PesterWindow(MovingWindow): if self.config.memoSound(): if self.config.nameSound(): 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") if m.find(":") <= 3: m = m[m.find(":"):]