Made some diagnostic changes to buddylist.cpp.