summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-09 14:10:51 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-09 14:10:51 +0800
commitfd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66 (patch)
treefadc3445fead35ab66d0196c8dd27b9688f89855 /mbbsd/talk.c
parente0f54c5ba43c5e4bc15698f5ffb4f222dc1d5e46 (diff)
downloadpttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar
pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.gz
pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.bz2
pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.lz
pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.xz
pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.tar.zst
pttbbs-fd0bebe7a68f0ff2a4a3a3aa90fc81bc28ee3e66.zip
merge from my branch
merge chc_*.c to chc.c merge gomo1.c into gomo.c add new feature to chc git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1171 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 2ef59c86..7ccd1e87 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -39,6 +39,8 @@ static char save_page_requestor[40];
static char page_requestor[40];
static FILE *flog;
+userinfo_t *uip;
+
int
iswritable_stat(userinfo_t * uentp, int fri_stat)
{
@@ -1187,8 +1189,8 @@ int make_connection_to_somebody(userinfo_t *uin, int timeout){
return sock;
}
-static void
-my_talk(userinfo_t * uin, int fri_stat)
+void
+my_talk(userinfo_t * uin, int fri_stat, char defact)
{
int sock, msgsock, error = 0, ch;
pid_t pid;
@@ -1197,6 +1199,7 @@ my_talk(userinfo_t * uin, int fri_stat)
unsigned char mode0 = currutmp->mode;
+ genbuf[0] = defact;
ch = uin->mode;
strlcpy(currauthor, uin->userid, sizeof(currauthor));
@@ -2215,7 +2218,7 @@ userlist(void)
move(3, 0);
if (uentp->pid != currpid &&
strcmp(uentp->userid, cuser.userid) != 0) {
- my_talk(uentp, fri_stat);
+ my_talk(uentp, fri_stat, 0);
}
else{
self_play(uentp, fri_stat);
@@ -2522,12 +2525,12 @@ t_talk()
}
if ((uentp = (userinfo_t *) search_ulistn(tuid, unum)))
- my_talk(uentp, friend_stat(currutmp, uentp));
+ my_talk(uentp, friend_stat(currutmp, uentp), 0);
return 0;
}
-static int
+int
reply_connection_request(userinfo_t *uip)
{
int a;
@@ -2561,7 +2564,6 @@ reply_connection_request(userinfo_t *uip)
}
/* 有人來串門子了,回應呼叫器 */
-static userinfo_t *uip;
void
talkreply(void)
{