channel.h File Reference

Go to the source code of this file.

Data Structures

struct  Channel
struct  ChanUser
struct  CMode

Defines

#define MAX_CHAN   34
#define KEYLEN   15

Functions

Channelfind_channel (char *chan)
Channelnew_chan (char *chan)
void dest_chan (char *chan)
char * create_chanmode_string (Channel *)
struct ChanUsernew_chanuser (User *)
struct ChanUserfind_chanuser (User *, Channel *)
void AddToChannel (char *, Channel *)
void AddToChannelU (User *, Channel *)
void DelFromChannel (User *, Channel *)
void KickFromChannel (User *, Channel *, char *)
int findcmode_bysymbol (char *)
int in_channel (User *, Channel *)

Variables

dlink_list channels
struct CMode ircd_cmodes [128]

Define Documentation

#define KEYLEN   15

Definition at line 7 of file include/channel.h.

#define MAX_CHAN   34

Definition at line 6 of file include/channel.h.


Function Documentation

void AddToChannel ( char *  ,
Channel  
)

Definition at line 200 of file channel.c.

void AddToChannelU ( User *  ,
Channel  
)

Definition at line 273 of file channel.c.

Referenced by foo_connect().

char* create_chanmode_string ( Channel  ) 

Definition at line 460 of file channel.c.

void DelFromChannel ( User *  ,
Channel  
)

Definition at line 352 of file channel.c.

Referenced by exit_one_user(), and exit_user().

void dest_chan ( char *  chan  ) 
Channel* find_channel ( char *  chan  ) 

Find a channel structure within the list by channel name.

Parameters:
chan Channel name
Returns:
Channel* Return the structure we found, or NULL if it cant be found or we fail for w/e reason.

Definition at line 146 of file channel.c.

Referenced by foo_connect(), new_chan(), and sendto_socket().

struct ChanUser* find_chanuser ( User *  ,
Channel  
) [read]

Definition at line 413 of file channel.c.

Referenced by DelFromChannel(), and KickFromChannel().

int findcmode_bysymbol ( char *  symbol  ) 

Find a mode string by its retrospective symbol

Parameters:
symbol Symbol of the mode we are searching for.
Returns:
return the location of the mode within our supported mode structure or -1 if the mode isnt supported or we failed for whatever reason.

Definition at line 58 of file channel.c.

Referenced by AddToChannel().

int in_channel ( User *  user,
Channel ch 
)

Check if a user is in a channel.

Parameters:
user User we are checking for.
ch Channel we are checking against.
Returns:
True if the user is within channel, or false if user is not.

Definition at line 178 of file channel.c.

Referenced by AddToChannel(), and AddToChannelU().

void KickFromChannel ( User *  ,
Channel ,
char *   
)

Definition at line 321 of file channel.c.

Channel* new_chan ( char *  chan  ) 

Allocate a new channel structure as well as initialize the defaults for that channel.

Parameters:
chan the name of the channel we are creating a structure for
Returns:
Channel* Return a pointer to the channel structure regardless. if the channel already exsists return a pointer to that as well.

Definition at line 88 of file channel.c.

Referenced by foo_connect().

struct ChanUser* new_chanuser ( User *   )  [read]

Definition at line 393 of file channel.c.

Referenced by AddToChannel(), and AddToChannelU().


Variable Documentation

dlink_list channels

Definition at line 9 of file include/channel.h.

Referenced by DelFromChannel(), find_channel(), KickFromChannel(), and new_chan().

struct CMode ircd_cmodes[128]

Definition at line 31 of file channel.c.

Generated on Mon Jul 19 21:53:04 2010 for Omega Security Services by  doxygen 1.6.3