summaryrefslogtreecommitdiffstats
path: root/daemon/regmaild/regmailc.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-19 21:34:39 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-19 21:34:39 +0800
commit07d2f9e8f641a93977a34f60d9ee187ab0268a1a (patch)
tree4c210ac98c1f65ae98c092b4480cdd50b6a5da25 /daemon/regmaild/regmailc.c
parent60c53c20d80245a1bea976bb9974295bb790fc4a (diff)
downloadpttbbs-07d2f9e8f641a93977a34f60d9ee187ab0268a1a.tar
pttbbs-07d2f9e8f641a93977a34f60d9ee187ab0268a1a.tar.gz
pttbbs-07d2f9e8f641a93977a34f60d9ee187ab0268a1a.tar.bz2
pttbbs-07d2f9e8f641a93977a34f60d9ee187ab0268a1a.tar.lz
pttbbs-07d2f9e8f641a93977a34f60d9ee187ab0268a1a.tar.xz
pttbbs-07d2f9e8f641a93977a34f60d9ee187ab0268a1a.tar.zst
pttbbs-07d2f9e8f641a93977a34f60d9ee187ab0268a1a.zip
* prepare to move ambiguous id check into regmaild (it should be named as regcheckd instead someday)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4754 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon/regmaild/regmailc.c')
-rw-r--r--daemon/regmaild/regmailc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/daemon/regmaild/regmailc.c b/daemon/regmaild/regmailc.c
index cd5d2be8..9855fbca 100644
--- a/daemon/regmaild/regmailc.c
+++ b/daemon/regmaild/regmailc.c
@@ -36,6 +36,12 @@ int main(int argc, char *argv[])
strlcpy(req.userid, argv[2], sizeof(req.userid));
strlcpy(req.email, argv[3], sizeof(req.email));
}
+ else if (strcmp(argv[1], "amb") == 0)
+ {
+ op = REGCHECK_REQ_AMBIGUOUS;
+ strlcpy(req.userid, argv[2], sizeof(req.userid));
+ strlcpy(req.email, "ambiguous@check.nonexist", sizeof(req.email));
+ }
else
return 0;
@@ -52,7 +58,7 @@ int main(int argc, char *argv[])
return 1;
}
- printf("count: %d\n", ret);
+ printf("result: %d\n", ret);
return 0;
}