As someone having an IRC client open while working since around 15 years this is so mindboggling. (Well, everything regarding the buzz about Slack and how it's a replacement for email, no it's the best thing since sliced bread, no wait, it's horrible.. etc.pp)
Why yes, of course you need to restrain yourself from chatting all day. And learn to ignore people or tell them you're not able to talk to them right now - but it can still be immensely helpful to have your network of people available to help you solve your problems - because you're also helping them solve their problems from time to time.