Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDafydd Harries <daf@rhydd.org>2007-07-24 21:25:00 (GMT)
committer Dafydd Harries <daf@rhydd.org>2007-07-24 21:25:00 (GMT)
commitab763ff94ec8a82bd772dd2b66be4e06870cb691 (patch)
treef935ade7775f739c1797d3e32c51aa4cb1add138
parent60849e88316f471ed13f1fafe44511cd6b73fb0b (diff)
should cache buddy objects
-rw-r--r--chat.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/chat.py b/chat.py
index 9b3a100..da6d72c 100644
--- a/chat.py
+++ b/chat.py
@@ -354,6 +354,7 @@ class TextChannelWrapper(object):
Calls self._activity_cb which is a callback to the activity.
"""
if self._activity_cb:
+ # XXX: cache these
buddy = self._get_buddy(sender)
self._activity_cb(buddy, text)
else: