argument is a string, not a buddy

This commit is contained in:
Dan Williams 2006-05-19 14:44:42 -04:00
parent ef18be4d7d
commit 8cfc17ff55

View File

@ -90,7 +90,10 @@ class LocalGroup(Group):
self._buddies[bid] = buddy
self._notify_buddy_join(buddy)
def _remove_buddy(self, buddy):
def _remove_buddy(self, bid):
if not self._buddies.has_key(bid):
return
buddy = self._buddies[bid]
self._notify_buddy_leave(buddy)
del self._buddies[buddy.get_nick_name()]