* client: the "Page who?" prompt now defaults to the last user who paged
authorArt Cancro <ajc@citadel.org>
Fri, 2 Mar 2001 03:18:35 +0000 (03:18 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 2 Mar 2001 03:18:35 +0000 (03:18 +0000)
  you or the last user you sent a page to, whichever is more recent.

citadel/ChangeLog
citadel/client_chat.c
citadel/client_chat.h
citadel/commands.c
citadel/techdoc/developers.txt

index 2697cccdd2c4fcc5068f603eb54bdbef835b90b0..9023f64c11f82335f659cd3cb99dc17747117667 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index 8a91402961327abb26980ce327e7d45d5c55d17e..c30cd66994b54b163883f67e41a7d34cda0bd898 100644 (file)
@@ -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;
 
index 4832b835705b0551d9448aac8f3fa8b83b2c6e56..927cd4f40924b4d2ddc8b483d2969612be2ce1a6 100644 (file)
@@ -2,3 +2,5 @@
 void chatmode(void);
 void page_user(void);
 void quiet_mode(void);
+
+extern char last_paged[];
index bfd1c652116dacff39c74a243d7de7644fbf6863..c9eca3ac78bc78c873b3c485e5198895747d22c8 100644 (file)
@@ -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(&timestamp);
 
index 2c730a0c20e1da981e9cac7247111f30c7bb91f5..e68bb0e5cfb27d803eb4e2e05ee8feecc7f02c8b 100644 (file)
@@ -38,3 +38,4 @@ Developer codes (and where known, client codes)
  
  6     Bastille <tdf@area51.v-wave.com>
  
+ 7      Walden Leverich <waldenl@techsoftinc.com>