X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fnetwork.h;h=ebfa92a2bf75940acf2ff5e8c88954702b93725d;hb=18389a713a6810f57ab237b945e8ee03df857b8b;hp=e425701eaa64d4cccfbc24e0f783a13c0dd558ac;hpb=edaef2d9c65a467f3a2ccf4df1702d92d8a41506;p=quassel.git diff --git a/src/common/network.h b/src/common/network.h index e425701e..ebfa92a2 100644 --- a/src/common/network.h +++ b/src/common/network.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -269,6 +269,12 @@ public slots: inline void initSetServerList(const QVariantList &serverList) { _serverList = fromVariantList(serverList); } virtual void initSetIrcUsersAndChannels(const QVariantMap &usersAndChannels); + /** + * Update IrcUser hostmask and username from mask, creating an IrcUser if one does not exist. + * + * @param[in] mask Full nick!user@hostmask string + * @return IrcUser of the matching nick if exists, otherwise a new IrcUser + */ IrcUser *updateNickFromMask(const QString &mask); // these slots are to keep the hashlists of all users and the