2011-12-24 13:40:27 +01:00
|
|
|
/*
|
|
|
|
* ngIRCd -- The Next Generation IRC Daemon
|
2012-01-22 18:33:45 +01:00
|
|
|
* Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
|
2011-12-24 13:40:27 +01:00
|
|
|
*
|
|
|
|
* 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 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
* Please read the file COPYING, README and AUTHORS for more information.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __class_h__
|
|
|
|
#define __class_h__
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* User class management.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define CLASS_KLINE 0
|
|
|
|
#define CLASS_GLINE 1
|
|
|
|
|
|
|
|
#define CLASS_COUNT 2
|
|
|
|
|
|
|
|
GLOBAL void Class_Init PARAMS((void));
|
|
|
|
GLOBAL void Class_Exit PARAMS((void));
|
|
|
|
|
2013-04-20 01:19:03 +02:00
|
|
|
GLOBAL bool Class_AddMask PARAMS((const int Class, const char *Pattern,
|
2011-12-25 14:19:45 +01:00
|
|
|
const time_t ValidUntil, const char *Reason));
|
2013-04-20 01:19:03 +02:00
|
|
|
GLOBAL void Class_DeleteMask PARAMS((const int Class, const char *Pattern));
|
2011-12-24 13:40:27 +01:00
|
|
|
|
2013-04-20 00:51:42 +02:00
|
|
|
GLOBAL bool Class_GetMemberReason PARAMS((const int Class, CLIENT *Client,
|
|
|
|
char *reason, size_t len));
|
2012-01-22 18:33:45 +01:00
|
|
|
GLOBAL bool Class_HandleServerBans PARAMS((CLIENT *Client));
|
2011-12-24 13:40:27 +01:00
|
|
|
|
2011-12-25 19:11:07 +01:00
|
|
|
GLOBAL struct list_head *Class_GetList PARAMS((const int Class));
|
2011-12-25 14:49:52 +01:00
|
|
|
|
2011-12-25 17:44:20 +01:00
|
|
|
GLOBAL void Class_Expire PARAMS((void));
|
|
|
|
|
2011-12-24 13:40:27 +01:00
|
|
|
#endif /* __class_h__ */
|
|
|
|
|
|
|
|
/* -eof- */
|