From 222871576c7d05f8d63ca121e3b299d4de7c91ce Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 3 Dec 2018 20:47:52 +0000 Subject: [PATCH] Added new @-codes requested by Ragnarkok: PAGER (expands to "on" or "off" to indicate chat page enable status) ALERTS (expands to "on or "off" to indicate activity alert enable status) --- src/sbbs3/atcodes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sbbs3/atcodes.cpp b/src/sbbs3/atcodes.cpp index 7adab8290f..8da27a2593 100644 --- a/src/sbbs3/atcodes.cpp +++ b/src/sbbs3/atcodes.cpp @@ -1,4 +1,5 @@ /* Synchronet "@code" functions */ +// vi: tabstop=4 /* $Id$ */ @@ -235,6 +236,12 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen) return(str); } + if(strcmp(sp, "PAGER") == 0) + return (thisnode.misc&NODE_POFF) ? text[Off] : text[On]; + + if(strcmp(sp, "ALERTS") == 0) + return (thisnode.misc&NODE_AOFF) ? text[Off] : text[On]; + if(!strcmp(sp,"INETADDR")) return(cfg.sys_inetaddr); -- GitLab