From ecd5097d515f53703eb5dc6096da80182c452ad9 Mon Sep 17 00:00:00 2001 From: Peter Feigl Date: Wed, 26 Feb 2014 23:50:50 +0100 Subject: Adding option --no-aliases to completely disable alias expansion --- src/journal.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/journal.cc') diff --git a/src/journal.cc b/src/journal.cc index 007acd7b..160abe06 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -173,6 +173,9 @@ account_t * journal_t::expand_aliases(string name) { // prevent infinite excursion. Each alias may only be expanded at most once. account_t * result = NULL; + if(no_aliases) + return result; + bool keep_expanding = true; std::list already_seen; // loop until no expansion can be found -- cgit v1.2.3