diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-02-09 18:09:39 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-02-09 18:09:39 +0800 |
commit | a835cfbf7e7e8dc027e44ac5afc135091daf6417 (patch) | |
tree | 4af9122aece95025a3af77a35ece92cfd5f6100f | |
parent | 49bffcef5511ed7832e0123e03ef4471bfcddc72 (diff) | |
download | pttbbs-a835cfbf7e7e8dc027e44ac5afc135091daf6417.tar pttbbs-a835cfbf7e7e8dc027e44ac5afc135091daf6417.tar.gz pttbbs-a835cfbf7e7e8dc027e44ac5afc135091daf6417.tar.bz2 pttbbs-a835cfbf7e7e8dc027e44ac5afc135091daf6417.tar.lz pttbbs-a835cfbf7e7e8dc027e44ac5afc135091daf6417.tar.xz pttbbs-a835cfbf7e7e8dc027e44ac5afc135091daf6417.tar.zst pttbbs-a835cfbf7e7e8dc027e44ac5afc135091daf6417.zip |
don't send aloha if the target is yourself.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5305 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/mbbsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c index e135e59a..45bfdaff 100644 --- a/pttbbs/mbbsd/mbbsd.c +++ b/pttbbs/mbbsd/mbbsd.c @@ -1364,7 +1364,8 @@ do_aloha(const char *hello) while (fgets(userid, 80, fp)) { userinfo_t *uentp; if ((uentp = (userinfo_t *) search_ulist_userid(userid)) && - isvisible(uentp, currutmp)) { + isvisible(uentp, currutmp) && + strcasecmp(uentp->userid, cuser.userid) != 0) { my_write(uentp->pid, hello, uentp->userid, WATERBALL_ALOHA, uentp); } } |