Loading src/client/chattable.c +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ CommandList chattable[]={ {"mwrc" ,0x0200 ,0, "Usage: mwrc [filename]", "Set/View your mwrc startup file", t_mwrc, 1}, {"notsayto" ,0x0003 ,2, "Usage: notsayto <user> <message>", "Talk normally but exclude a single user", t_notsayto, 1}, {"protect" ,0x0020 ,1, "Usage: protect <user> [level]", "Protect user from harm [to optional level]", t_protect, 1}, {"quit" ,0x0000 ,0, "Usage: quit", "Leave Talker", t_quit, 1}, {"quit" ,0x0000 ,0, "Usage: quit", "Leave talker", t_quit, 1}, {"raw" ,0x0001 ,1, "Usage: raw <message>", "Send raw message", t_raw, 1}, {"remove" ,0x0808 ,1, "Usage: remove <user> [reason]", "Eject user from BBS, ignoring protection", t_remove, 1}, {"replay" ,0x0000 ,2, "Usage: replay {since|serial|count} <number>", "Replay previous messages", t_replay, 1}, Loading src/client/edit.c +2 −2 Original line number Diff line number Diff line Loading @@ -567,14 +567,14 @@ void edit_user(const char *args, const char *name) show_user_stats(usr->status, stats, true); show_special(usr->special, specs, true); printf(_("Username: %s\nReal Name: %s\n"), usr->name, usr->realname); printf(_("Username: %s\nReal name: %s\n"), usr->name, usr->realname); printf(_("Contact: %s\nStatus [%s]\tSpecials [%s]\n"), usr->contact, stats, specs); show_fold_groups(usr->groups, stats, true); printf(_("Groups [%s]\n"), stats); show_protection(usr->chatmode, usr->chatprivs, stats, 9); printf(_("Talker: Modes=[%s] Privs=[%s] Protection=[%s]\n"), printf(_("Talker: modes=[%s] privs=[%s] protection=[%s]\n"), display_cmflags(usr->chatmode), display_cpflags(usr->chatprivs), stats); Loading src/client/incoming.c +2 −2 Original line number Diff line number Diff line Loading @@ -501,9 +501,9 @@ static void display_error(ipc_message_t *msg) int len = MAXTEXTLENGTH; if (msg->head.type == IPC_TALKERROR) { snprintf(tb, len, "Talker Error: %s", text); snprintf(tb, len, "Talker error: %s", text); } else { snprintf(tb, len, "Unknown %s Error: %s", type, text); snprintf(tb, len, "Unknown %s error: %s", type, text); } force_text(msg, buff, "System"); Loading src/client/main.c +1 −1 Original line number Diff line number Diff line Loading @@ -653,7 +653,7 @@ int main(int argc, char **argv) } time_t when = user->record.lastlogout; printf(_("\nLast logged out %s\n\n"),ctime(&when)); printf(_("Last logged out %s\n"),ctime(&when)); if (u_reg(user)) { if (!autochat) { printf(_("Type 'talker' to enter chat mode.\n")); Loading src/client/new.c +7 −9 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ void list_new_items(struct user *user, int flag) int screen_height=screen_h(); if (nofolders()) {printf(_("There are no folders to read !\n")); return;} return; file=openfolderfile(O_RDONLY); while (get_folder_entry(file,fol)) { Loading Loading @@ -184,14 +184,15 @@ void show_new(struct user *user) int folderfile; int folnum=0; data=(struct folder *)malloc(sizeof(*data)); if (nofolders()) { printf(_("There are no folders to read !\n")); free(data); return; data = malloc(sizeof(*data)); if (data == NULL) { perror("Failed to show new messages"); return; } folderfile=openfolderfile(O_RDONLY); while (get_folder_entry(folderfile,data)) { Loading Loading @@ -221,10 +222,7 @@ void latest(struct user *user) char datestr[30],sub[40]; if (nofolders()) { printf(_("There are no folders to read !\n")); return; } ffile=openfolderfile(O_RDONLY); printf(_(" Folder Mesg Date From Subject\n")); Loading Loading
src/client/chattable.c +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ CommandList chattable[]={ {"mwrc" ,0x0200 ,0, "Usage: mwrc [filename]", "Set/View your mwrc startup file", t_mwrc, 1}, {"notsayto" ,0x0003 ,2, "Usage: notsayto <user> <message>", "Talk normally but exclude a single user", t_notsayto, 1}, {"protect" ,0x0020 ,1, "Usage: protect <user> [level]", "Protect user from harm [to optional level]", t_protect, 1}, {"quit" ,0x0000 ,0, "Usage: quit", "Leave Talker", t_quit, 1}, {"quit" ,0x0000 ,0, "Usage: quit", "Leave talker", t_quit, 1}, {"raw" ,0x0001 ,1, "Usage: raw <message>", "Send raw message", t_raw, 1}, {"remove" ,0x0808 ,1, "Usage: remove <user> [reason]", "Eject user from BBS, ignoring protection", t_remove, 1}, {"replay" ,0x0000 ,2, "Usage: replay {since|serial|count} <number>", "Replay previous messages", t_replay, 1}, Loading
src/client/edit.c +2 −2 Original line number Diff line number Diff line Loading @@ -567,14 +567,14 @@ void edit_user(const char *args, const char *name) show_user_stats(usr->status, stats, true); show_special(usr->special, specs, true); printf(_("Username: %s\nReal Name: %s\n"), usr->name, usr->realname); printf(_("Username: %s\nReal name: %s\n"), usr->name, usr->realname); printf(_("Contact: %s\nStatus [%s]\tSpecials [%s]\n"), usr->contact, stats, specs); show_fold_groups(usr->groups, stats, true); printf(_("Groups [%s]\n"), stats); show_protection(usr->chatmode, usr->chatprivs, stats, 9); printf(_("Talker: Modes=[%s] Privs=[%s] Protection=[%s]\n"), printf(_("Talker: modes=[%s] privs=[%s] protection=[%s]\n"), display_cmflags(usr->chatmode), display_cpflags(usr->chatprivs), stats); Loading
src/client/incoming.c +2 −2 Original line number Diff line number Diff line Loading @@ -501,9 +501,9 @@ static void display_error(ipc_message_t *msg) int len = MAXTEXTLENGTH; if (msg->head.type == IPC_TALKERROR) { snprintf(tb, len, "Talker Error: %s", text); snprintf(tb, len, "Talker error: %s", text); } else { snprintf(tb, len, "Unknown %s Error: %s", type, text); snprintf(tb, len, "Unknown %s error: %s", type, text); } force_text(msg, buff, "System"); Loading
src/client/main.c +1 −1 Original line number Diff line number Diff line Loading @@ -653,7 +653,7 @@ int main(int argc, char **argv) } time_t when = user->record.lastlogout; printf(_("\nLast logged out %s\n\n"),ctime(&when)); printf(_("Last logged out %s\n"),ctime(&when)); if (u_reg(user)) { if (!autochat) { printf(_("Type 'talker' to enter chat mode.\n")); Loading
src/client/new.c +7 −9 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ void list_new_items(struct user *user, int flag) int screen_height=screen_h(); if (nofolders()) {printf(_("There are no folders to read !\n")); return;} return; file=openfolderfile(O_RDONLY); while (get_folder_entry(file,fol)) { Loading Loading @@ -184,14 +184,15 @@ void show_new(struct user *user) int folderfile; int folnum=0; data=(struct folder *)malloc(sizeof(*data)); if (nofolders()) { printf(_("There are no folders to read !\n")); free(data); return; data = malloc(sizeof(*data)); if (data == NULL) { perror("Failed to show new messages"); return; } folderfile=openfolderfile(O_RDONLY); while (get_folder_entry(folderfile,data)) { Loading Loading @@ -221,10 +222,7 @@ void latest(struct user *user) char datestr[30],sub[40]; if (nofolders()) { printf(_("There are no folders to read !\n")); return; } ffile=openfolderfile(O_RDONLY); printf(_(" Folder Mesg Date From Subject\n")); Loading