Updates for mbnntp
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
|
||||
include ../Makefile.global
|
||||
|
||||
SRCS = mbnntp.c openport.c ttyio.c auth.c
|
||||
HDRS = mbnntp.h openport.h ttyio.h auth.h
|
||||
OBJS = mbnntp.o openport.o ttyio.o auth.o
|
||||
SRCS = mbnntp.c openport.c ttyio.c auth.c commands.c
|
||||
HDRS = mbnntp.h openport.h ttyio.h auth.h commands.h
|
||||
OBJS = mbnntp.o openport.o ttyio.o auth.o commands.o
|
||||
LIBS += ../lib/libmbse.a ../lib/libdbase.a ../lib/libmsgbase.a
|
||||
OTHER = Makefile
|
||||
|
||||
@@ -55,8 +55,9 @@ depend:
|
||||
|
||||
# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
|
||||
# Dependencies generated by make depend
|
||||
mbnntp.o: ../config.h ../lib/mbselib.h ../lib/users.h ../lib/mbsedb.h openport.h ttyio.h auth.h mbnntp.h
|
||||
mbnntp.o: ../config.h ../lib/mbselib.h ../lib/users.h ../lib/mbsedb.h openport.h ttyio.h auth.h commands.h mbnntp.h
|
||||
openport.o: ../config.h ../lib/mbselib.h openport.h
|
||||
ttyio.o: ../config.h ../lib/mbselib.h ttyio.h
|
||||
auth.o: ../config.h ../lib/mbselib.h mbnntp.h auth.h
|
||||
auth.o: ../config.h ../lib/mbselib.h ../lib/users.h mbnntp.h auth.h
|
||||
commands.o: ../config.h ../lib/mbselib.h mbnntp.h commands.h
|
||||
# End of generated dependencies
|
||||
|
43
mbnntp/commands.c
Normal file
43
mbnntp/commands.c
Normal file
@@ -0,0 +1,43 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*****************************************************************************
|
||||
* Copyright (C) 1997-2004
|
||||
*
|
||||
* Michiel Broek FIDO: 2:280/2802
|
||||
* Beekmansbos 10
|
||||
* 1971 BV IJmuiden
|
||||
* the Netherlands
|
||||
*
|
||||
* This file is part of MBSE BBS.
|
||||
*
|
||||
* This BBS is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2, or (at your option) any
|
||||
* later version.
|
||||
*
|
||||
* MBSE BBS is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with MBSE BBS; see the file COPYING. If not, write to the Free
|
||||
* Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../config.h"
|
||||
#include "../lib/mbselib.h"
|
||||
#include "mbnntp.h"
|
||||
#include "commands.h"
|
||||
|
||||
|
||||
void command_list(char *cmd)
|
||||
{
|
||||
send_nntp("215 List of newsgroups follows");
|
||||
|
||||
send_nntp(".");
|
||||
}
|
||||
|
||||
|
8
mbnntp/commands.h
Normal file
8
mbnntp/commands.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _COMMANDS_H
|
||||
#define _COMMANDS_H
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
void command_list(char *); /* LIST */
|
||||
|
||||
#endif
|
@@ -35,6 +35,7 @@
|
||||
#include "openport.h"
|
||||
#include "ttyio.h"
|
||||
#include "auth.h"
|
||||
#include "commands.h"
|
||||
#include "mbnntp.h"
|
||||
|
||||
time_t t_start;
|
||||
@@ -197,15 +198,6 @@ void send_nntp(const char *format, ...)
|
||||
|
||||
|
||||
|
||||
void command_list(char *cmd)
|
||||
{
|
||||
send_nntp("215 List of newsgroups follows");
|
||||
|
||||
send_nntp(".");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void nntp(void)
|
||||
{
|
||||
char buf[4096];
|
||||
|
Reference in New Issue
Block a user