https://bugs.quassel-irc.org/issues/1454
Implements #1454.
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("*"));
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").arg(j), params[j - 1]);
}
command = command.replace("$0", msg);
command = command.replace(QString("$%1").arg(j), params[j - 1]);
}
command = command.replace("$0", msg);
" - <b>$i..j</b> represents the i'th to j'th parameter separated by spaces.<br />"
" - <b>$i..</b> represents all parameters from i on separated by spaces.<br />"
" - <b>$i:hostname</b> represents the hostname of the user identified by the i'th parameter or a * if unknown.<br />"
" - <b>$i..j</b> represents the i'th to j'th parameter separated by spaces.<br />"
" - <b>$i..</b> represents all parameters from i on separated by spaces.<br />"
" - <b>$i:hostname</b> represents the hostname of the user identified by the i'th parameter or a * if unknown.<br />"
+ " - <b>$i:ident</b> represents the ident of the user identified by the i'th parameter or a * if unknown.<br />"
" - <b>$0</b> the whole string.<br />"
" - <b>$nick</b> your current nickname<br />"
" - <b>$channel</b> the name of the selected channel<br /><br />"
" - <b>$0</b> the whole string.<br />"
" - <b>$nick</b> your current nickname<br />"
" - <b>$channel</b> the name of the selected channel<br /><br />"