void Notifier::notify(const QString &summary, const QString &message)
{
#if defined(HAVE_MNOTIFICATION)
    QList<MNotification*> notifications = MNotification::notifications();
    foreach (MNotification *n, notifications)
    {
        if (n->summary() == summary)
            n->remove();
    }

    MNotification *notification = new MNotification("irc-chatter.irc", summary, message);
    notification->setIdentifier("irc");
    notification->setAction(MRemoteAction("net.venemo.ircchatter", "/", "net.venemo.ircchatter", "activateApplication"));

    notification->publish();
#else
    Q_UNUSED(summary)
    Q_UNUSED(message)
    qDebug() << Q_FUNC_INFO << "Sending notifications is not supported by the current build.";
#endif
}