From ab763ff94ec8a82bd772dd2b66be4e06870cb691 Mon Sep 17 00:00:00 2001 From: Dafydd Harries Date: Tue, 24 Jul 2007 21:25:00 +0000 Subject: should cache buddy objects --- 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: -- cgit v0.9.1