From: Vitor Luis Date: Sat, 1 Feb 2020 11:36:02 +0000 (+0100) Subject: common: Use /quote by default for aliases X-Git-Tag: 0.14-rc1~43 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=4ee99e398eab6e96cfc3750a32fcf6c0b87e1f6f;hp=6f10483c9fe74a9464d7bf9eea53ef83c3403e23 common: Use /quote by default for aliases Sending `/quote` instead of `/msg` is probably the most widely used method by other IRC clients and will also make them work out of the box with DALnet that requires that commands to NickServ (as example) to be sent explicitly as `/msg NickServ@services.dal.net` to work. I've tested this myself in DALnet, Freenode and some other networks with different IRCd flavours and all worked without any problems. --- diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index f87cd585..7975015e 100644 --- a/src/common/aliasmanager.cpp +++ b/src/common/aliasmanager.cpp @@ -81,9 +81,9 @@ void AliasManager::addAlias(const QString& name, const QString& expansion) AliasManager::AliasList AliasManager::defaults() { AliasList aliases; - aliases << Alias("j", "/join $0") << Alias("ns", "/msg nickserv $0") << Alias("nickserv", "/msg nickserv $0") - << Alias("cs", "/msg chanserv $0") << Alias("chanserv", "/msg chanserv $0") << Alias("hs", "/msg hostserv $0") - << Alias("hostserv", "/msg hostserv $0") << Alias("wii", "/whois $0 $0") << Alias("back", "/quote away"); + 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"); #ifdef Q_OS_LINUX // let's add aliases for scripts that only run on linux