class.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * ngIRCd -- The Next Generation IRC Daemon
  3. * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. * Please read the file COPYING, README and AUTHORS for more information.
  10. */
  11. #ifndef __class_h__
  12. #define __class_h__
  13. /**
  14. * @file
  15. * User class management.
  16. */
  17. #define CLASS_KLINE 0
  18. #define CLASS_GLINE 1
  19. #define CLASS_COUNT 2
  20. GLOBAL void Class_Init PARAMS((void));
  21. GLOBAL void Class_Exit PARAMS((void));
  22. GLOBAL bool Class_AddMask PARAMS((const int Class, const char *Mask,
  23. const time_t ValidUntil, const char *Reason));
  24. GLOBAL void Class_DeleteMask PARAMS((const int Class, const char *Mask));
  25. GLOBAL char *Class_GetMemberReason PARAMS((const int Class, CLIENT *Client));
  26. GLOBAL bool Class_HandleServerBans PARAMS((CLIENT *Client));
  27. GLOBAL struct list_head *Class_GetList PARAMS((const int Class));
  28. GLOBAL void Class_Expire PARAMS((void));
  29. #endif /* __class_h__ */
  30. /* -eof- */