How to stop OS X Lion automatically asking me to join a network
In System Preferences > Network > Wi-Fi you can check or uncheck the "Ask to join new networks". Under "Advanced" you'll also need to uncheck the box next to "Remember networks this computer has joined".