X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Faliasmanager.cpp;h=9fcc567f2c654bb145078b50d7ecc482bc3366fb;hb=092e6b212637ffbf68800584b7c1f32d1931b602;hp=fceb7b4853e2f02dee632d1e69ea7a2283f0f8df;hpb=d3dcda30c8cbee75c0c8f500f4ab552bde513036;p=quassel.git diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index fceb7b48..9fcc567f 100644 --- a/src/common/aliasmanager.cpp +++ b/src/common/aliasmanager.cpp @@ -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 * @@ -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);