summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-01 18:01:51 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-01 18:01:51 +0800
commit4c256182f70ad244e0ec40af45c0c0857abb0a01 (patch)
treef2663fd39c9234b611a9d3fb8f01fcc3cecaf008 /mbbsd/talk.c
parentd2e9ddb320e18206dcb54e7d8476fdc73e489fa9 (diff)
downloadpttbbs-4c256182f70ad244e0ec40af45c0c0857abb0a01.tar
pttbbs-4c256182f70ad244e0ec40af45c0c0857abb0a01.tar.gz
pttbbs-4c256182f70ad244e0ec40af45c0c0857abb0a01.tar.bz2
pttbbs-4c256182f70ad244e0ec40af45c0c0857abb0a01.tar.lz
pttbbs-4c256182f70ad244e0ec40af45c0c0857abb0a01.tar.xz
pttbbs-4c256182f70ad244e0ec40af45c0c0857abb0a01.tar.zst
pttbbs-4c256182f70ad244e0ec40af45c0c0857abb0a01.zip
- add move_ansi() to support moving to lines with prior ANSI code.
- general improvement git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3602 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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)