Making friends is not a bad thing at all, but you need to balance out the virtual life with your real life. I think if you get out there and do activities that interest you along with other people, you are bound to find lifelong peers with which you can have shared experiences with in real life. Once you've enriched your life with them, you'll find that you might not want to log in to chat that often!
Online chatting can sometimes give the illusion that you are popular and have many friends, however, they might not be the case in the offline world. It's a good thing that you recognise the fact that you are addicted. Self-awareness is the first key step. The next part is to regulate your chatting time. You don't have to go cold turkey. In fact, doing so might make you relapse even more. Instead cut back your time spent chatting. If you usually chat 8 hours a day, the push it down to 1 hour a day. Ensure that there are no reminders during the other times of the day that would make you want to chat.
When we feel that something has become addictive, it’s usually because we want to stop but for some reason, we can’t. If that’s what’s going on, then it would be wise to identify what you’re getting out of online chatting and see if you can get those needs met in other ways. For instance, talking to people online can help make you feel validated or more sure of yourself and your ideals, but if you have to keep going back for more validation then you may have a problem with self-confidence. You could try taking an art class instead or developing a new hobby with others in your area.