summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
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 */