summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-10-01 22:42:57 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-10-01 22:42:57 +0800
commit233e3205df3f43bf54ed366333fc71340ca71bef (patch)
treee49249aa461450e97c8d469d640f6da164c8bb2e /mbbsd/chat.c
parentefd842401473002b70d43e50aa3ecffe1423a899 (diff)
downloadpttbbs-233e3205df3f43bf54ed366333fc71340ca71bef.tar
pttbbs-233e3205df3f43bf54ed366333fc71340ca71bef.tar.gz
pttbbs-233e3205df3f43bf54ed366333fc71340ca71bef.tar.bz2
pttbbs-233e3205df3f43bf54ed366333fc71340ca71bef.tar.lz
pttbbs-233e3205df3f43bf54ed366333fc71340ca71bef.tar.xz
pttbbs-233e3205df3f43bf54ed366333fc71340ca71bef.tar.zst
pttbbs-233e3205df3f43bf54ed366333fc71340ca71bef.zip
* eliminate warnings according to lxb's commit on pttbbslite
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3581 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index cb252e15..9d729969 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -116,37 +116,6 @@ chat_recv(struct ChatBuf *cb, int fd, char *chatroom, char *chatid, size_t chati
return 0;
}
-static int
-printuserent(const userinfo_t * uentp)
-{
- static char uline[80];
- static int cnt;
- char pline[30];
-
- if (!uentp) {
- if (cnt)
- printchatline(uline);
- bzero(uline, sizeof(uline));
- cnt = 0;
- return 0;
- }
- if (!HasUserPerm(PERM_SYSOP) && !HasUserPerm(PERM_SEECLOAK) && uentp->invisible)
- return 0;
-
- snprintf(pline, sizeof(pline), "%-13s%c%-10s ", uentp->userid,
- uentp->invisible ? '#' : ' ',
- modestring(uentp, 1));
- if (cnt < 2)
- strlcat(pline, "│", sizeof(pline));
- strlcat(uline, pline, sizeof(uline));
- if (++cnt == 3) {
- printchatline(uline);
- memset(uline, 0, 80);
- cnt = 0;
- }
- return 0;
-}
-
static void
chathelp(const char *cmd, const char *desc)
{
@@ -249,18 +218,6 @@ chat_query(char *arg)
printchatline(err_uid);
}
-static void
-chat_users(char* unused)
-{
- printchatline("");
- printchatline("【 " BBSNAME "的遊客列表 】");
- printchatline(msg_shortulist);
-
- if (apply_ulist(printuserent) == -1)
- printchatline("空無一人");
- printuserent(NULL);
-}
-
typedef struct chat_command_t {
char *cmdname; /* Chatroom command length */
void (*cmdfunc) (char *); /* Pointer to function */