X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Faliasmanager.cpp;h=aabb0c7364b613a28f206f59160bf4aff9e4b9a5;hb=8179670f13fbbdd5cbcd7fb4a3dc187913ee9ba3;hp=f9b0385baadc412890aec8f4df8f9b6411a21441;hpb=d36b7f8ed6ec4474492c60e3c16b3d6755630e3c;p=quassel.git diff --git a/src/common/aliasmanager.cpp b/src/common/aliasmanager.cpp index f9b0385b..aabb0c73 100644 --- a/src/common/aliasmanager.cpp +++ b/src/common/aliasmanager.cpp @@ -80,3 +80,16 @@ void AliasManager::addAlias(const QString &name, const QString &expansion) { emit aliasAdded(name, 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("back", "/quote away"); + return aliases; +}