summaryrefslogtreecommitdiffstats
path: root/mbbsd/cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r--mbbsd/cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 1966d237..3f4b20f2 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -200,7 +200,7 @@ osong(void)
}
while ((po = strstr(buf, "<~Src~>"))) {
const char *dot = "";
- if (strcmp(sender, cuser.userid) != 0)
+ if (is_validuserid(sender) && strcmp(sender, cuser.userid) != 0)
dot = ".";
po[0] = 0;
snprintf(genbuf, sizeof(genbuf), "%s%s%s%s", buf, sender, dot, po + 7);