I avoided any social situations where there would be alcohol for several months to give myself the best chance at staying sober. I also changed old habits and avoided any places, people and situations that i associated with drinking. After a couple of months i felt more confident in my sobriety and started to socialize more. I never choose to spend time in a pub now. However, being around other people who are having a couple of drinks does not bother me at all. I think making sobriety a priority over pretty much everything else is important.