X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc.h;h=03fb0dc45bbe1e02893a8ab4d0ccf1950003b54d;hp=858ce42c3229a3057d96ce19d4d358cd216499ae;hb=b5faf3055b61afaef73ac49a448cac1a5b063127;hpb=08cf560734765afe70140753db1e881be647e540 diff --git a/src/ngircd/irc.h b/src/ngircd/irc.h index 858ce42c..03fb0dc4 100644 --- a/src/ngircd/irc.h +++ b/src/ngircd/irc.h @@ -1,64 +1,36 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001 by Alexander Barton (alex@barton.de) + * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors. * - * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen - * der GNU General Public License (GPL), wie von der Free Software Foundation - * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 - * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. - * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste - * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS. - * - * $Id: irc.h,v 1.6 2001/12/26 14:45:37 alex Exp $ - * - * irc.h: IRC-Befehle (Header) - * - * $Log: irc.h,v $ - * Revision 1.6 2001/12/26 14:45:37 alex - * - "Code Cleanups". - * - * Revision 1.5 2001/12/26 03:21:46 alex - * - PING/PONG-Befehle implementiert, - * - Meldungen ueberarbeitet: enthalten nun (fast) immer den Nick. - * - * Revision 1.4 2001/12/25 22:02:42 alex - * - neuer IRC-Befehl "/QUIT". Verbessertes Logging & Debug-Ausgaben. - * - * Revision 1.3 2001/12/25 19:19:30 alex - * - bessere Fehler-Abfragen, diverse Bugfixes. - * - Nicks werden nur einmal vergeben :-) - * - /MOTD wird unterstuetzt. - * - * Revision 1.2 2001/12/23 21:57:16 alex - * - erste IRC-Befehle zu implementieren begonnen. - * - * Revision 1.1 2001/12/14 08:13:43 alex - * - neues Modul begonnen :-) + * 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 __irc_h__ #define __irc_h__ -#include "parse.h" - - -GLOBAL VOID IRC_Init( VOID ); -GLOBAL VOID IRC_Exit( VOID ); - -GLOBAL BOOLEAN IRC_WriteStrClient( CLIENT *Client, CLIENT *Prefix, CHAR *Format, ... ); +/** + * @file + * IRC commands (header) + */ -GLOBAL BOOLEAN IRC_PASS( CLIENT *Client, REQUEST *Req ); -GLOBAL BOOLEAN IRC_NICK( CLIENT *Client, REQUEST *Req ); -GLOBAL BOOLEAN IRC_USER( CLIENT *Client, REQUEST *Req ); -GLOBAL BOOLEAN IRC_PING( CLIENT *Client, REQUEST *Req ); -GLOBAL BOOLEAN IRC_PONG( CLIENT *Client, REQUEST *Req ); -GLOBAL BOOLEAN IRC_QUIT( CLIENT *Client, REQUEST *Req ); +GLOBAL bool IRC_CheckListTooBig PARAMS((CLIENT *From, const int Count, + const int Limit, const char *Name)); -GLOBAL BOOLEAN IRC_MOTD( CLIENT *Client, REQUEST *Req ); +GLOBAL bool IRC_ERROR PARAMS((CLIENT *Client, REQUEST *Req)); +GLOBAL bool IRC_KILL PARAMS((CLIENT *Client, REQUEST *Req)); +GLOBAL bool IRC_NOTICE PARAMS((CLIENT *Client, REQUEST *Req)); +GLOBAL bool IRC_PRIVMSG PARAMS((CLIENT *Client, REQUEST *Req)); +GLOBAL bool IRC_SQUERY PARAMS((CLIENT *Client, REQUEST *Req)); +GLOBAL bool IRC_TRACE PARAMS((CLIENT *Client, REQUEST *Req)); +GLOBAL bool IRC_HELP PARAMS((CLIENT *Client, REQUEST *Req)); +GLOBAL bool IRC_KillClient PARAMS((CLIENT *Client, CLIENT *From, + const char *Nick, const char *Reason)); #endif - /* -eof- */