diff options
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc index 8e505c22..54fd8e4e 100644 --- a/src/session.cc +++ b/src/session.cc @@ -235,6 +235,11 @@ expr_t::ptr_op_t session_t::lookup(const string& name) { const char * p = name.c_str(); switch (*p) { + case 'n': + if (is_eq(p, "now")) + return MAKE_FUNCTOR(session_t::fn_now); + break; + case 'o': if (WANT_OPT()) { p += OPT_PREFIX_LEN; if (option_t<session_t> * handler = lookup_option(p)) |