diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-12 13:09:08 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-12 13:09:08 +0800 |
commit | 8d8887e355480b30629b8576aa5998b7eb3d9288 (patch) | |
tree | 2836f86b977a933dcaa750da6a339058319442f7 /mbbsd/talk.c | |
parent | a6b3fe4ff21bf66ac268bc7487cb41dc74526d67 (diff) | |
download | pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.gz pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.bz2 pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.lz pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.xz pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.tar.zst pttbbs-8d8887e355480b30629b8576aa5998b7eb3d9288.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1586 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 761b4c4d..7822e665 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -702,6 +702,19 @@ my_write(pid_t pid, char *prompt, char *id, int flag, userinfo_t * puin) } void +getmessage(msgque_t msg) +{ + int write_pos = currutmp->msgcount; + if ( write_pos < (MAX_MSGS - 1) ) { + unsigned char pager0 = currutmp->pager; + currutmp->msgcount = write_pos+1; + memcpy(&currutmp->msgs[write_pos], &msg, sizeof(msgque_t)); + currutmp->pager = pager0; + write_request(SIGUSR1); + } +} + +void t_display_new(void) { static int t_display_new_flag = 0; |