Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

operserv.h

Go to the documentation of this file.
00001 
00008 /*
00009  * Copyright (c) 1996-1997 Chip Norkus
00010  * Copyright (c) 1997 Max Byrd
00011  * Copyright (c) 1997 Greg Poma
00012  * All rights reserved.
00013  *
00014  * Redistribution and use in source and binary forms, with or without
00015  * modification, are permitted provided that the following conditions
00016  * are met:
00017  * 1. Redistributions of source code must retain the above copyright
00018  *    notice, this list of conditions and the following disclaimer.
00019  * 2. Redistributions in binary form must reproduce the above copyright
00020  *    notice, this list of conditions and the following disclaimer in the
00021  *    documentation and/or other materials provided with the distribution.
00022  * 3. Neither the name of the authors nor the names of its contributors
00023  *    may be used to endorse or promote products derived from this software
00024  *    without specific prior written permission.
00025  *
00026  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
00027  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00028  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00029  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
00030  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00031  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00032  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00033  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00034  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00035  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00036  * SUCH DAMAGE.
00037  */
00038 
00039 #ifndef __OPERSERV_H
00040 #define __OPERSERV_H
00041 
00042 #include "nickserv.h"
00043 
00045 struct akill
00046 {
00047     struct akill *next, *prev;
00048 
00049     int id;                         
00050     char *nick;                     
00051     char *user;                     
00052     char *host;                     
00053     time_t set;                     
00054     time_t unset;                   
00055     char setby[NICKLEN];            
00056     char reason[AKREASON_LEN + 1];  
00057     char type;                      
00058     int tid;                        
00059 };
00060 
00066 /* typedef struct akill_struct AKill; */
00067 
00068 /*struct akill_struct {
00069   char            nick[NICKLEN];    
00070   char            user[USERLEN];    
00071   char            host[HOSTLEN];    
00072   char            reason[50];       // Brief reason /
00073   int             timer;
00074   int             type;
00075   AKill          *next;
00076 };*/
00077 
00078 /*
00079 #define OAKILL   0x0001
00080 #define OIGNORE  0x0002
00081 #define OTRIGGER 0x0004
00082 */
00083 void            sendToOperServ(UserList *, char **, int);
00084 void            addTempHost(long, char *, char *, int);
00087 void        readConf(void);
00088 char* applyAkill(char* nick, char* user, char* host, struct akill* ak);
00089 
00090 #endif /* __OPERSERV_H */

Generated at Sat Oct 25 20:56:09 2003 for Services using Doxygen.
Services Copyr. 1996-2001 Chip Norkus, Max Byrd, Greg Poma, Michael Graff, James Hess, Dafydd James. All rights reserved See LICENSE for licensing information.