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

chantrig.c File Reference

Triggers by channel name. More...

#include "services.h"
#include "chanserv.h"
#include "nickserv.h"
#include "macro.h"
#include "queue.h"
#include "hash.h"
#include "db.h"
#include "chantrig.h"

Go to the source code of this file.

Functions

ChanTriggerFindChannelTrigger (const char *name)
 Find a trigger associated with channel X, if there is one.

void DelChannelTrigger (ChanTrigger *ct)
 Delete trigger ct.

void AddChannelTrigger (ChanTrigger *ct)
 Add a new channel trigger to the list.

void FreeChannelTrigger (ChanTrigger *ct)
 Free a ChanTrigger object.

ChanTriggerMakeChannelTrigger (const char *cn)
 Create a new channel trigger object for target name.

unsigned int ChanMaxAkicks (RegChanList *cn)
 Maximum number ops for this channel.

unsigned int ChanMaxOps (RegChanList *cn)


Detailed Description

Triggers by channel name.

Author:
James Hess
Date:
2002
Id
chantrig.c,v 1.1.1.1 2003/07/04 02:51:49 Mysid Exp

Definition in file chantrig.c.


Function Documentation

unsigned int ChanMaxOps RegChanList *  cn  ) 
 

Maximum number akicks for this channel

Definition at line 137 of file chantrig.c.

References FindChannelTrigger(), _ChanTrigInfo::op_trigger, and OpLimit.

void DelChannelTrigger ChanTrigger ct  ) 
 

Delete trigger ct.

ct Pointer to trigger to delete (null is ok)

Note:
Does not free anything

Definition at line 73 of file chantrig.c.

References LIST_REMOVE.

ChanTrigger* FindChannelTrigger const char *  name  ) 
 

Find a trigger associated with channel X, if there is one.

name Name of the channel

Returns:
Null pointer if no trigger found, else pointer to found item

Definition at line 53 of file chantrig.c.

References _ChanTrigInfo::chan_name, ChanTrigHash, getHashKey(), LIST_FIRST, and LIST_NEXT.

Referenced by ChanMaxAkicks(), and ChanMaxOps().


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