summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-23 10:39:02 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-23 10:39:02 +0800
commite84a29034ca2aaeedce5f2cd84e68264fb9a3b46 (patch)
tree07858050538b08d5c01d80c10e62c97e7ee72a6a /mbbsd
parent25c4be0984fa21112eec92a28acda58eacfd9016 (diff)
downloadpttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.gz
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.bz2
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.lz
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.xz
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.tar.zst
pttbbs-e84a29034ca2aaeedce5f2cd84e68264fb9a3b46.zip
correct revision 2210
add reloadfcache to shmctl git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2209 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cache.c2
-rw-r--r--mbbsd/name.c8
-rw-r--r--mbbsd/talk.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index d826199f..32cc4a95 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -866,7 +866,7 @@ resolve_garbage(void)
/* PTT's cache */
/*-------------------------------------------------------*/
/* cache for from host »P³Ì¦h¤W½u¤H¼Æ */
-static void
+void
reload_fcache(void)
{
if (SHM->Fbusystate)
diff --git a/mbbsd/name.c b/mbbsd/name.c
index 9a53e086..a012ab93 100644
--- a/mbbsd/name.c
+++ b/mbbsd/name.c
@@ -566,8 +566,6 @@ generalnamecomplete(char *prompt, char *data, int len, size_t nmemb,
if (ptr != 0) {
gnc_findbound(data, &start, &end, nmemb, compar);
ret = gnc_completeone(data, start, end, permission, getname);
- if (ret < 0)
- data[0] = 0;
} else
ptr = -1;
break;
@@ -691,8 +689,10 @@ completeutmp_compar(int where, char *str, int len)
int
completeutmp_permission(int where)
{
- return (HAS_PERM(PERM_SYSOP) || HAS_PERM(PERM_SEECLOAK) ||
- !SHM->sorted[SHM->currsorted][0][where]->invisible);
+ return (unlikely(HAS_PERM(PERM_SYSOP)) ||
+ unlikely(HAS_PERM(PERM_SEECLOAK)) ||
+// !SHM->sorted[SHM->currsorted][0][where]->invisible);
+ isvisible(currutmp, SHM->sorted[SHM->currsorted][0][where]));
}
char *
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 39e142ae..66613e99 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -3006,14 +3006,14 @@ AngelNotOnline(){
outs("\nÍ¢¯d¨¥µ¹§A¡G\n");
outs("\033[1;31;44m¡ó¢s¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢t\033[37m"
"¤p¤Ñ¨Ï¯d¨¥\033[31m¢u¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢s¡ó\033[m\n");
- outs("\033[1;31mùú¢t\033[32m ¤p¤Ñ¨Ï "
- " \033[31m¢uùû\033[m\n");
+ outs("\033[1;31m¢~¢t\033[32m ¤p¤Ñ¨Ï "
+ " \033[31m¢u¢¡\033[m\n");
while (fgets(buf, sizeof(buf), fp)) {
buf[strlen(buf) - 1] = 0;
prints("\033[1;31m¢x\033[m%-74.74s\033[1;31m¢x\033[m\n", buf);
}
- outs("\033[1;31mùü¢s¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w"
- "¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢sùý\033[m\n");
+ outs("\033[1;31m¢¢¢s¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w"
+ "¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢s¢£\033[m\n");
outs("\033[1;31;44m¡ó¢r¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w"
"¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢r¡ó\033[m\n");