X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Faliasmanager.cpp;h=9fcc567f2c654bb145078b50d7ecc482bc3366fb;hb=0dbec2cfc937857d66a9645249f876f1e6b3f05e;hp=e7cdec651147383fbddc65f0cd0fdfa6af14f36a;hpb=517fc0fdbbd67b4e195b7a06246ff81a963a37fa;p=quassel.git diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index e7cdec65..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 * @@ -190,6 +190,7 @@ void AliasManager::expand(const QString &alias, const BufferInfo &bufferInfo, co 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);