1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
/************************************************************************
*
* IRC - Internet Relay Chat, include/flud.h
* Copyright (C) 1999 Michael Pearce
*
* This program 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 1, or (at your option)
* any later version.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*
*/
#ifndef INCLUDED_flud_h
#define INCLUDED_flud_h
#ifndef INCLUDED_config_h
#include "config.h"
#endif
#ifndef INCLUDED_sys_types_h
#include <sys/types.h>
#define INCLUDED_sys_types_h
#endif
#ifdef FLUD
struct SLink;
struct Client;
struct Channel;
struct BlockHeap;
struct fludbot {
struct Client *fluder;
int count;
time_t first_msg;
time_t last_msg;
struct fludbot *next;
};
extern struct BlockHeap *free_fludbots;
extern struct BlockHeap *free_Links;
extern void announce_fluder(struct Client *,struct Client *,struct Channel *,int );
extern struct fludbot *remove_fluder_reference(struct fludbot **,
struct Client *);
extern struct SLink *remove_fludee_reference(struct SLink **,void *);
extern int check_for_spam(struct Client *,struct Client *,struct Channel *,char *);
extern int check_for_flud(struct Client *,struct Client *,struct Channel *,int);
extern void free_fluders(struct Client *,struct Channel *);
extern void free_fludees(struct Client *);
#endif
extern int check_for_ctcp(const char *);
#endif /* INCLUDED_flud_h */
|