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

operserv.h File Reference

#include "nickserv.h"

Go to the source code of this file.

Classes

struct  akill
 An akill/services ignore/autohurt list item. More...


Functions

void sendToOperServ (UserList *, char **, int)
 Parse an OperServ message.

void addTempHost (long, char *, char *, int)
void readConf (void)
 Reads the services configuration file.

char * applyAkill (char *nick, char *user, char *host, struct akill *ak)


Detailed Description

Author:
Chip Norkus

Max Byrd

Greg Poma

Date:
1996-1997
Id
operserv.h,v 1.1.1.1 2003/07/04 02:55:55 Mysid Exp

Definition in file operserv.h.


Function Documentation

char* applyAkill char *  nick,
char *  user,
char *  host,
struct akill ak
 

Returns:
A reason string if the user described is akilled, otherwise a null pointer.
Parameters:
nick The user's nickname
user The users's username
host The user's hostname
Precondition:
Nick, user, and host each point to separate, valid NUL-terminated character arrays. Nick is a valid IRC nickname, user is a valid IRC username, and host is a valid IRC hostname.
Postcondition:
If the user is found, then if appropriate an AKILL or AHURT message is sent.

Definition at line 238 of file akill.c.

References A_AHURT, A_AKILL, CTime, akill::host, akill::id, kline_email_nitems, kline_enforce_buf, myname, akill::nick, ops_email_nitems, ops_enforce_buf, akill::reason, akill::set, sSend(), akill::type, akill::unset, and akill::user.

Referenced by addNewUser().

void readConf void   ) 
 

Reads the services configuration file.

void loadAKills(void); void saveAKills(void);

Definition at line 72 of file conf.c.

void sendToOperServ UserList nick,
char **  args,
int  numargs
 

Parse an OperServ message.

Parameters:
tmp Pointer to online user initiating the msesage
args Args of the message, where args[0] is the command and the extra parameters follow
numargs Highest index in the args[] array passed plus 1. so args[numargs - 1] is the highest index that can be safely accessed.

Definition at line 128 of file operserv.c.

References getOpFlags(), isOper(), _userlist::nick, OperServ, RET_FAIL, and sSend().

Referenced by parseLine().


Generated at Sat Oct 25 20:56:12 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.