Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
340199db
Commit
340199db
authored
Apr 24, 2020
by
rswindell
Browse files
Some new user stats @-codes for Nelgin:
- EMAILS - FBACKS - ETODAY - PTODAY - LTODAY - TTODAY - TLAST - TEXTRA
parent
9a1d18d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
src/sbbs3/atcodes.cpp
src/sbbs3/atcodes.cpp
+39
-0
No files found.
src/sbbs3/atcodes.cpp
View file @
340199db
...
...
@@ -826,6 +826,45 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode)
return
(
str
);
}
if
(
strcmp
(
sp
,
"EMAILS"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
emails
);
return
str
;
}
if
(
strcmp
(
sp
,
"FBACKS"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
fbacks
);
return
str
;
}
if
(
strcmp
(
sp
,
"ETODAY"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
etoday
);
return
str
;
}
if
(
strcmp
(
sp
,
"PTODAY"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
ptoday
);
return
str
;
}
if
(
strcmp
(
sp
,
"LTODAY"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
ltoday
);
return
str
;
}
if
(
strcmp
(
sp
,
"TTODAY"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
ttoday
);
return
str
;
}
if
(
strcmp
(
sp
,
"TLAST"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
tlast
);
return
str
;
}
if
(
strcmp
(
sp
,
"TEXTRA"
)
==
0
)
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
textra
);
return
str
;
}
if
(
!
strcmp
(
sp
,
"MSGLEFT"
)
||
!
strcmp
(
sp
,
"MSGSLEFT"
))
{
safe_snprintf
(
str
,
maxlen
,
"%u"
,
useron
.
posts
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment