#include "stdinc.h"#include "server.h"Go to the source code of this file.
Functions | |
| int | findcmode_bysymbol (char *symbol) |
| Channel * | new_chan (char *chan) |
| Channel * | find_channel (char *chan) |
| int | in_channel (User *user, Channel *ch) |
| void | AddToChannel (char *user, Channel *c) |
| void | AddToChannelU (User *user, Channel *c) |
| void | KickFromChannel (User *u, Channel *c, char *message) |
| void | DelFromChannel (User *user, Channel *c) |
| struct ChanUser * | new_chanuser (User *user) |
| struct ChanUser * | find_chanuser (User *u, Channel *c) |
| char * | create_sjoin_nicklist (Channel *c) |
| char * | create_chanmode_string (Channel *c) |
| void | read_chanmode_string (Channel *c, char *modes, char **params) |
Variables | |
| Channel * | chan_list |
| struct CMode | ircd_cmodes [128] |
| void AddToChannel | ( | char * | user, | |
| Channel * | c | |||
| ) |
Definition at line 200 of file channel.c.
References evh_channel::c, dlink_add_tail(), dlink_create(), Event(), find_user(), findcmode_bysymbol(), ChanUser::halfop, in_channel(), new_chanuser(), ChanUser::op, ChanUser::owner, ChanUser::protect, evh_channel::u, Channel::usercnt, Channel::users, and ChanUser::voice.
| void AddToChannelU | ( | User * | user, | |
| Channel * | c | |||
| ) |
Definition at line 273 of file channel.c.
References BURSTING, evh_channel::c, dlink_add_tail(), dlink_create(), Event(), ChanUser::halfop, in_channel(), ircd_join(), MyConnect, new_chanuser(), ChanUser::op, ChanUser::owner, ChanUser::protect, sync_state, evh_channel::u, Channel::usercnt, Channel::users, and ChanUser::voice.
Referenced by foo_connect().
| char* create_chanmode_string | ( | Channel * | c | ) |
Definition at line 460 of file channel.c.
References CMode::character, Channel::external, Channel::haskey, Channel::key, Channel::limit, Channel::onlyoptopic, Channel::registered, strlcat(), strlcpy(), and Channel::unknownmodes.
| char* create_sjoin_nicklist | ( | Channel * | c | ) |
Definition at line 432 of file channel.c.
References DLINK_FOREACH, ChanUser::op, strlcat(), ChanUser::user, and Channel::users.
| void DelFromChannel | ( | User * | user, | |
| Channel * | c | |||
| ) |
Definition at line 352 of file channel.c.
References evh_channel::c, channels, dlink_find_delete(), dlink_free(), Event(), find_chanuser(), evh_channel::u, Channel::usercnt, and Channel::users.
Referenced by exit_one_user(), and exit_user().
| Channel* find_channel | ( | char * | chan | ) |
Find a channel structure within the list by channel name.
| chan | Channel name |
Definition at line 146 of file channel.c.
References channels, DLINK_FOREACH, and Channel::name.
Referenced by foo_connect(), new_chan(), and sendto_socket().
Definition at line 413 of file channel.c.
References DLINK_FOREACH, ChanUser::user, and Channel::users.
Referenced by DelFromChannel(), and KickFromChannel().
| int findcmode_bysymbol | ( | char * | symbol | ) |
Find a mode string by its retrospective symbol
| symbol | Symbol of the mode we are searching for. |
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.
| user | User we are checking for. | |
| ch | Channel we are checking against. |
Definition at line 178 of file channel.c.
References DLINK_FOREACH, and Channel::name.
Referenced by AddToChannel(), and AddToChannelU().
| void KickFromChannel | ( | User * | u, | |
| Channel * | c, | |||
| char * | message | |||
| ) |
Definition at line 321 of file channel.c.
References alog(), evh_channel::c, channels, dlink_find_delete(), dlink_free(), Event(), find_chanuser(), LOG_DEBUG2, evh_channel::message, strlcpy(), evh_channel::u, Channel::usercnt, and Channel::users.
| Channel* new_chan | ( | char * | chan | ) |
Allocate a new channel structure as well as initialize the defaults for that channel.
| chan | the name of the channel we are creating a structure for |
Definition at line 88 of file channel.c.
References alog(), Channel::audit, channels, Channel::channelts, dlink_add_tail(), dlink_create(), Channel::external, find_channel(), Channel::flood, Channel::haskey, Channel::invite, Channel::limit, Channel::linked, Channel::name, Channel::onlyoptopic, Channel::operonly, Channel::priv, Channel::registered, Channel::regonly, Channel::ssl, strlcpy(), Channel::unknownmodes, Channel::usercnt, and Channel::users.
Referenced by foo_connect().
| struct ChanUser* new_chanuser | ( | User * | user | ) | [read] |
Definition at line 393 of file channel.c.
References ChanUser::halfop, ChanUser::op, ChanUser::owner, ChanUser::protect, ChanUser::user, and ChanUser::voice.
Referenced by AddToChannel(), and AddToChannelU().
| void read_chanmode_string | ( | Channel * | c, | |
| char * | modes, | |||
| char ** | params | |||
| ) |
Work our the nasty SJOIN params (mainly keys and limits)
Definition at line 517 of file channel.c.
References Channel::external, Channel::haskey, Channel::key, Channel::limit, Channel::onlyoptopic, s_assert, strlcat(), strlcpy(), and Channel::unknownmodes.
| struct CMode ircd_cmodes[128] |
1.6.3