#include "commands.h"
#include "ipc.h"
#include "client_chat.h"
+#include "client_icq.h"
#include "citadel_decls.h"
#include "tools.h"
#ifndef HAVE_SNPRINTF
char floorlist[128][256]; /* names of floors */
char express_msgs = 0; /* express messages waiting! */
-jmp_buf jmp_reconnect; /* for server reconnects */
-char re_username[32];
-char re_password[32];
-
-void sigpipehandler(int nothing)
-{
- longjmp(jmp_reconnect, nothing);
-}
-
/*
* here is our 'clean up gracefully and exit' routine
*/
newprompt("Enter a new password: ", pass1, -19);
newprompt("Enter it again to confirm: ", pass2, -19);
}
+ strproc(pass1);
+ strproc(pass2);
if (!strucmp(pass1, pass2)) {
snprintf(buf, sizeof buf, "SETP %s", pass1);
serv_puts(buf);
serv_gets(buf);
printf("%s\n", &buf[4]);
- strcpy(re_password, pass1);
return (0);
} else {
printf("*** They don't match... try again.\n");
time_t timenow = 0;
time_t idletime, idlehours, idlemins, idlesecs;
int last_session = (-1);
+ int linecount = 2;
if (longlist) {
serv_puts("TIME");
fromhost, clientsoft,
(long) idlehours, (long) idlemins, (long) idlesecs);
+ linecount += 3;
} else {
if (extract_int(buf, 0) == last_session) {
printf(" ");
color(BRIGHT_CYAN);
printf("%-25s ", username);
color(BRIGHT_MAGENTA);
+ roomname[20] = 0;
printf("%-20s ", roomname);
color(BRIGHT_CYAN);
printf("%-24s\n", fromhost);
color(DIM_WHITE);
+ ++linecount;
}
+ linecount = checkpagin(linecount,
+ ((userflags & US_PAGINATOR) ? 1 : 0),
+ screenheight);
}
}
}
formout("hello"); /* print the opening greeting */
printf("\n");
- GSTA:termn8 = 0;
+GSTA: termn8 = 0;
newnow = 0;
do {
if (strlen(rc_username) > 0) {
goto TERMN8;
}
/* sign on to the server */
- strcpy(re_username, fullname);
snprintf(aaa, sizeof aaa, "USER %s", fullname);
serv_puts(aaa);
serv_gets(aaa);
serv_puts(aaa);
serv_gets(aaa);
if (aaa[0] == '2') {
- strcpy(re_password, eee);
load_user_info(&aaa[4]);
goto PWOK;
}
do { /* MAIN LOOP OF PROGRAM */
- /* Reconnect to the server if the connection was broken */
- if (setjmp(jmp_reconnect)) {
- printf("\rServer connection broken; reconnecting...\r");
- fflush(stdout);
- attach_to_server(argc, argv);
- printf(" \r");
- fflush(stdout);
- serv_gets(aaa);
- if (aaa[0] != '2') {
- printf("%s\n", &aaa[4]);
- exit(0);
- }
- get_serv_info();
- sprintf(aaa, "USER %s", re_username);
- serv_puts(aaa);
- serv_gets(aaa);
- if (aaa[0] != '3') {
- printf("%s\n", &aaa[4]);
- exit(0);
- }
- sprintf(aaa, "PASS %s", re_password);
- serv_puts(aaa);
- serv_gets(aaa);
- if (aaa[0] != '2') {
- printf("%s\n", &aaa[4]);
- exit(0);
- }
- load_user_info(&aaa[4]);
- sprintf(aaa, "GOTO %s", room_name);
- serv_puts(aaa);
- serv_gets(aaa);
- }
- signal(SIGPIPE, sigpipehandler);
-
signal(SIGINT, SIG_IGN);
signal(SIGQUIT, SIG_IGN);
mcmd = getcmd(argbuf);
do_system_configuration();
break;
+ case 82:
+ do_internet_configuration();
+ break;
+
+ case 83:
+ check_message_base();
+ break;
+
case 50:
enter_config(2);
break;
page_user();
break;
+ case 81:
+ setup_icq();
+ break;
+
} /* end switch */
} while (termn8 == 0);