Adnan, this is exactly why people use
IRC bouncers. Using a bouncer makes IRC a hell of a lot more pleasant than any other chatting platform out there.
To use a bouncer, you could either use a hosted one (there are a ton of Internet hosts that offer BNC hosting, both paid and for free), or if you want greater flexibility and security, you can host your own. I personally use
ZNC, it was incredibly easy to install and configure on my server. Highly recommended.