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

chantrig.h File Reference

Channel triggers utility headers. More...

Go to the source code of this file.

Functions

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

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

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

void DelChannelTrigger (ChanTrigger *ct)
 Delete trigger ct.

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

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

unsigned int ChanMaxOps (RegChanList *cn)


Detailed Description

Channel triggers utility headers.

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

Definition in file chantrig.h.


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.