$Log$
+Revision 1.343 1999/08/03 03:14:51 ajc
+* Wrote the client side of the ICQ gateway. Now on to other projects. :)
+
Revision 1.342 1999/08/03 01:52:06 ajc
* Redesigned the client protocol commands for dealing with ICQ
* Implemented page function priority ordering to prevent pages from being
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
-
serv_info.c serv_test.c setup.c snprintf.c stats.c \
support.c sysdep.c tools.c user_ops.c userlist.c serv_expire.c \
whobbs.c sendcommand.c mime_parser.c base64.c qpdecode.c getutline.c \
- auth.c chkpwd.c
+ auth.c chkpwd.c client_icq.c
DEP_FILES=$(SOURCES:.c=.d)
#
#
-citadel$(EXEEXT): ipc_c_tcp.o citadel.o rooms.o routines.o routines2.o messages.o \
+citadel$(EXEEXT): ipc_c_tcp.o citadel.o rooms.o routines.o \
+ routines2.o messages.o client_icq.o \
commands.o client_chat.o serv_info.o tools.o $(LIBOBJS)
- $(CC) ipc_c_tcp.o citadel.o rooms.o routines.o routines2.o messages.o \
+ $(CC) ipc_c_tcp.o citadel.o rooms.o routines.o routines2.o \
+ messages.o client_icq.o \
commands.o client_chat.o serv_info.o tools.o $(LIBOBJS) $(LDFLAGS) \
-o citadel $(NETLIBS)
#include "commands.h"
#include "ipc.h"
#include "client_chat.h"
+#include "client_icq.h"
#include "citadel_decls.h"
#include "tools.h"
#ifndef HAVE_SNPRINTF
page_user();
break;
+ case 81:
+ setup_icq();
+ break;
+
} /* end switch */
} while (termn8 == 0);
cmd=40,0,&.,&Enter,file using &Xmodem
cmd=42,0,&.,&Enter,file using &Ymodem
cmd=44,0,&.,&Enter,file using &Zmodem
+cmd=81,0,&.,&Enter,IC&Q Configuration
#
# Command 57 is the local-file-upload command for users with their own
# copy of the clientware. Commands 72-74 are for image uploads.
char buf[256];
int i;
+ if (!(CC->logged_in)) {
+ cprintf("%d Not logged in.\n", ERROR + NOT_LOGGED_IN);
+ return;
+ }
extract(cmd, argbuf, 0);
-
/* "CICQ login" tells us how to log in. */
if (!strcasecmp(cmd, "login")) {
uin = extract_long(argbuf, 1);
/* "CICQ getcl" returns the contact list */
if (!strcasecmp(cmd, "getcl")) {
+ CtdlICQ_Read_CL();
cprintf("%d Your ICQ contact list:\n", LISTING_FOLLOWS);
if (ThisICQ->icq_numcl > 0) {
for (i=0; i<ThisICQ->icq_numcl; ++i) {
return;
}
+ /* "CICQ status" returns the connected/notconnected status */
+ if (!strcasecmp(cmd, "status")) {
+ cprintf("%d %d\n", OK,
+ ((ThisICQ->icq_Sok >= 0) ? 1 : 0) );
+ return;
+ }
+
cprintf("%d Invalid subcommand\n", ERROR);
}