common: Use /quote by default for aliases
authorVitor Luis <droider.pc@gmail.com>
Sat, 1 Feb 2020 11:36:02 +0000 (12:36 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 3 Oct 2020 17:27:45 +0000 (19:27 +0200)
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.

src/common/aliasmanager.cpp

index f87cd58..7975015 100644 (file)
@@ -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