summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index d7eccb6a..b518f1a7 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -86,7 +86,10 @@ int query_online(const char *userid)
{
userinfo_t *uentp;
- if (!userid || !*userid || *userid == '-')
+ if (!userid || !*userid)
+ return 0;
+
+ if (!isalnum(*userid))
return 0;
if (strchr(userid, '.') || SHM->GV2.e.noonlineuser)