X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Faliasmanager.cpp;h=9fcc567f2c654bb145078b50d7ecc482bc3366fb;hb=fa3449061f17d7e8db1387f0758fd052f22f4c3b;hp=3d049fad48ef0b6daf4e6d23c96a0927d542cf09;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c;p=quassel.git diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index 3d049fad..9fcc567f 100644 --- a/src/common/aliasmanager.cpp +++ b/src/common/aliasmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 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 * @@ -189,6 +189,8 @@ void AliasManager::expand(const QString &alias, const BufferInfo &bufferInfo, co for (int j = params.count(); j > 0; j--) { IrcUser *ircUser = net->ircUser(params[j - 1]); command = command.replace(QString("$%1:hostname").arg(j), ircUser ? ircUser->host() : QString("*")); + command = command.replace(QString("$%1:ident").arg(j), ircUser ? ircUser->user() : QString("*")); + command = command.replace(QString("$%1:account").arg(j), ircUser ? ircUser->account() : QString("*")); command = command.replace(QString("$%1").arg(j), params[j - 1]); } command = command.replace("$0", msg);