Skip to content
C++ IRC library written in Qt with support for data serialization. Perfect for your IRC client.
C++ C CMake QMake
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


C++ IRC library that is very versatile and designed for pretty much any type of IRC client (or server). libirc is a core component of GrumpyChat IRC system, which is a full featured IRC client with distributed core. You can see how it's implemented in its source code here:


libirc consist of 2 parts right now, the architecture supports server implementation as well, which is not however implemented yet.


The core foundation that contains IRC definitions and objects that are shared between server and client implementations


IRC client foundations based on top of libirc, it overrides the basic definitions of IRC objects (users, channels, networks) and implements the client functionality into them. Every single aspect of libirc can be overriden and modified.


Because GrumpyChat requires ability to transfer C++ objects via network protocols in order to achieve its distributed model, libirc implements primitive ability to serialize and deserialize its objects. Each object is inherited from special class "Serializable" which implements two virtual functions:

  • void LoadHash(QHash<QString, QVariant> hash)
  • QHash<QString, QVariant> ToHash()

These two functions allow to turn whole C++ object into a QHash, which can be later either stored to disk, or serialized and sent over network. The hash can be user to instantiate these classes, either create new instance of class and then call LoadHash, or simply pass the hash into constructor of the class.

You can’t perform that action at this time.