From 3fea2b26f3bd1fd4199a5a2a16f8f8e6bbcbcff6 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 2 Mar 2001 03:18:35 +0000 Subject: [PATCH] * client: the "Page who?" prompt now defaults to the last user who paged you or the last user you sent a page to, whichever is more recent. --- citadel/ChangeLog | 5 +++++ citadel/client_chat.c | 3 ++- citadel/client_chat.h | 2 ++ citadel/commands.c | 2 ++ citadel/techdoc/developers.txt | 1 + 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 2697cccdd..9023f64c1 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 573.104 2001/03/02 03:18:33 ajc + * client: the "Page who?" prompt now defaults to the last user who paged + you or the last user you sent a page to, whichever is more recent. + Revision 573.103 2001/02/28 05:49:04 ajc * Removed the moderation questions. * Added extra ignores of SIGPIPE to the code (before every client socket @@ -2486,3 +2490,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/client_chat.c b/citadel/client_chat.c index 8a9140296..c30cd6699 100644 --- a/citadel/client_chat.c +++ b/citadel/client_chat.c @@ -40,6 +40,8 @@ extern struct CtdlServInfo serv_info; extern char temp[]; void getline(char *, int); +char last_paged[SIZ] = ""; + void chatmode(void) { char wbuf[SIZ]; @@ -216,7 +218,6 @@ void chatmode(void) */ void page_user() { - static char last_paged[32] = ""; char buf[SIZ], touser[SIZ], msg[SIZ]; FILE *pagefp; diff --git a/citadel/client_chat.h b/citadel/client_chat.h index 4832b8357..927cd4f40 100644 --- a/citadel/client_chat.h +++ b/citadel/client_chat.h @@ -2,3 +2,5 @@ void chatmode(void); void page_user(void); void quiet_mode(void); + +extern char last_paged[]; diff --git a/citadel/commands.c b/citadel/commands.c index bfd1c6521..c9eca3ac7 100644 --- a/citadel/commands.c +++ b/citadel/commands.c @@ -41,6 +41,7 @@ #include "routines2.h" #include "tools.h" #include "rooms.h" +#include "client_chat.h" #ifndef HAVE_SNPRINTF #include "snprintf.h" #endif @@ -213,6 +214,7 @@ void print_express(void) flags = extract_int(&buf[4], 2); extract(sender, &buf[4], 3); extract(node, &buf[4], 4); + strcpy(last_paged, sender); stamp = localtime(×tamp); diff --git a/citadel/techdoc/developers.txt b/citadel/techdoc/developers.txt index 2c730a0c2..e68bb0e5c 100644 --- a/citadel/techdoc/developers.txt +++ b/citadel/techdoc/developers.txt @@ -38,3 +38,4 @@ Developer codes (and where known, client codes) 6 Bastille + 7 Walden Leverich -- 2.39.2