You can do it with Adium as well. Don't go into Adium Preferences, instead use to top menu where it says "Adium" next to the apple logo (leftmost side) underneath Preferences you'll see "Privacy Settings", click it and select Allow only contacts on my contact list... done