X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Faliasmanager.cpp;h=a4a9d648b6e3f5f376df615440ba857da14e87d2;hp=7975015e82dc1a3ae885c54557256677d1e5fd59;hb=HEAD;hpb=3144d9c1f06a6b0dcb0f19d0375ec2c082dab82a diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index 7975015e..57e73e09 100644 --- a/src/common/aliasmanager.cpp +++ b/src/common/aliasmanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2020 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -83,7 +83,8 @@ AliasManager::AliasList AliasManager::defaults() AliasList aliases; aliases << Alias("j", "/join $0") << Alias("ns", "/quote nickserv $0") << Alias("nickserv", "/quote nickserv $0") << Alias("cs", "/quote chanserv $0") << Alias("chanserv", "/quote chanserv $0") << Alias("hs", "/quote hostserv $0") - << Alias("hostserv", "/quote hostserv $0") << Alias("wii", "/whois $0 $0") << Alias("back", "/quote away"); + << Alias("hostserv", "/quote hostserv $0") << Alias("wii", "/whois $0 $0") << Alias("back", "/quote away") + << Alias("raw", "/quote $0"); #ifdef Q_OS_LINUX // let's add aliases for scripts that only run on linux @@ -192,7 +193,7 @@ void AliasManager::expand(const QString& alias, const BufferInfo& bufferInfo, co command = command.replace(QString("$%1:ident").arg(j), (ircUser && !ircUser->user().isEmpty()) ? ircUser->user() : QString("*")); // Nickname - // Must be replaced last to avoid interferring with more specific aliases + // Must be replaced last to avoid interfering with more specific aliases command = command.replace(QString("$%1").arg(j), params[j - 1]); } command = command.replace("$0", msg);