#include "services.h"#include "language.h"
Go to the source code of this file.
Defines | |
| #define | HASH(chan) ((chan)[1] ? ((chan)[1]&31)<<5 | ((chan)[2]&31) : 0) |
Functions | |
| void | chan_deluser (User *user, Channel *c) |
| char * | chan_get_modes (Channel *chan, int complete, int plus) |
| int | chan_get_user_status (Channel *chan, User *user) |
| int | chan_has_user_status (Channel *chan, User *user, int16 status) |
| void | chan_remove_user_status (Channel *chan, User *user, int16 status) |
| void | chan_set_modes (const char *source, Channel *chan, int ac, char **av, int check) |
| void | chan_set_user_status (Channel *chan, User *user, int16 status) |
| Channel * | findchan (const char *chan) |
| Channel * | firstchan (void) |
| Channel * | nextchan (void) |
| void | get_channel_stats (long *nrec, long *memuse) |
| int | is_on_chan (Channel *c, User *u) |
| User * | nc_on_chan (Channel *c, NickCore *nc) |
| void | do_join (const char *source, int ac, char **av) |
| void | do_kick (const char *source, int ac, char **av) |
| void | do_part (const char *source, int ac, char **av) |
| void | do_sjoin (const char *source, int ac, char **av) |
| void | do_cmode (const char *source, int ac, char **av) |
| void | do_topic (const char *source, int ac, char **av) |
| void | add_ban (Channel *chan, char *mask) |
| void | add_exception (Channel *chan, char *mask) |
| void | add_invite (Channel *chan, char *mask) |
| void | chan_set_correct_modes (User *user, Channel *c, int give_modes) |
| void | chan_adduser2 (User *user, Channel *c) |
| Channel * | chan_create (char *chan, time_t ts) |
| void | chan_delete (Channel *c) |
| void | del_ban (Channel *chan, char *mask) |
| void | del_exception (Channel *chan, char *mask) |
| void | del_invite (Channel *chan, char *mask) |
| char * | get_flood (Channel *chan) |
| char * | get_throttle (Channel *chan) |
| char * | get_key (Channel *chan) |
| char * | get_limit (Channel *chan) |
| char * | get_redirect (Channel *chan) |
| char * | get_unkwn (Channel *chan) |
| Channel * | join_user_update (User *user, Channel *chan, char *name, time_t chants) |
| void | set_flood (Channel *chan, char *value) |
| void | chan_set_throttle (Channel *chan, char *value) |
| void | chan_set_key (Channel *chan, char *value) |
| void | set_limit (Channel *chan, char *value) |
| void | set_redirect (Channel *chan, char *value) |
| void | set_unkwn (Channel *chan, char *value) |
| void | do_mass_mode (char *modes) |
| void | restore_unsynced_topics (void) |
| Entry * | entry_create (char *mask) |
| Entry * | entry_add (EList *list, char *mask) |
| void | entry_delete (EList *list, Entry *e) |
| EList * | list_create () |
| int | entry_match (Entry *e, char *nick, char *user, char *host, uint32 ip) |
| int | entry_match_mask (Entry *e, char *mask, uint32 ip) |
| Entry * | elist_match (EList *list, char *nick, char *user, char *host, uint32 ip) |
| Entry * | elist_match_mask (EList *list, char *mask, uint32 ip) |
| static Entry * | _elist_match_user (EList *list, User *u, boolean full) |
| Entry * | elist_match_user (EList *list, User *u) |
| Entry * | elist_match_user_full (EList *list, User *u, boolean full) |
| Entry * | elist_find_mask (EList *list, char *mask) |
| long | get_memuse (EList *list) |
Variables | |
| Channel * | chanlist [1024] |
| static Channel * | current |
| static int | next_index |
| #define HASH | ( | chan | ) | ((chan)[1] ? ((chan)[1]&31)<<5 | ((chan)[2]&31) : 0) |
Definition at line 19 of file channels.c.
Referenced by chan_create(), chan_delete(), and findchan().
Check if a user matches an entry on a list.
| list | EntryList that should be matched against | |
| user | The user to match against the entries | |
| full | true to match against real host and real IP |
Definition at line 2400 of file channels.c.
References user_::chost, elist_match(), c_elist::entries, user_::host, host_resolve(), user_::hostip, user_::nick, sstrdup(), str_is_ip(), user_::username, user_::vhost, and user_::vident.
Referenced by elist_match_user(), and elist_match_user_full().
| void add_ban | ( | Channel * | chan, | |
| char * | mask | |||
| ) |
Definition at line 1336 of file channels.c.
References alog(), anope_cmd_mode(), channel_::bans, chaninfo_::bi, BSMinUsers, BSSmartJoin, channel_::ci, debug, entry_add(), entry_delete(), entry_match(), fatal(), botinfo_::host, list_create(), channel_::name, botinfo_::nick, s_BotServ, botinfo_::user, and channel_::usercount.
Referenced by anope_event_bmask(), anope_event_capab(), and do_sjoin().
| void add_exception | ( | Channel * | chan, | |
| char * | mask | |||
| ) |
Definition at line 1375 of file channels.c.
References alog(), debug, entry_add(), channel_::excepts, fatal(), list_create(), and channel_::name.
Referenced by anope_event_bmask(), anope_event_capab(), and do_sjoin().
| void add_invite | ( | Channel * | chan, | |
| char * | mask | |||
| ) |
Definition at line 1400 of file channels.c.
References alog(), debug, entry_add(), fatal(), channel_::invites, list_create(), and channel_::name.
Referenced by anope_event_bmask(), anope_event_capab(), and do_sjoin().
We let the bot join even if it was an ignored user, as if we don't, and the ignored user dosnt just leave, the bot will never make it into the channel, leaving the channel botless even for legit users - Rob
Definition at line 1607 of file channels.c.
References anope_cmd_privmsg(), chaninfo_::bi, bot_join(), chaninfo_::botflags, BS_GREET, BSMinUsers, CA_GREET, CA_MEMO, check_access(), channel_::ci, chaninfo_::entry_message, get_ignore(), nickcore_::greet, is_sync(), botinfo_::lastmsg, MemoInfo::memocount, chaninfo_::memos, user_::na, channel_::name, chaninfo_::name, nickalias_::nc, nickalias_::nick, botinfo_::nick, user_::nick, notice_lang(), notice_user(), channel_::c_userlist::prev, s_BotServ, s_MemoServ, scalloc(), user_::server, channel_::c_userlist::user, channel_::usercount, channel_::users, and whosends.
Referenced by join_user_update().
| Channel* chan_create | ( | char * | chan, | |
| time_t | ts | |||
| ) |
Definition at line 1668 of file channels.c.
References alog(), chaninfo_::c, c, check_modes(), channel_::ci, channel_::creation_time, cs_findchan(), debug, HASH, is_sync(), channel_::name, channel_::next, channel_::prev, restore_topic(), scalloc(), serv_uplink, stick_all(), strscpy(), and channel_::topic_sync.
Referenced by join_user_update().
| void chan_delete | ( | Channel * | c | ) |
Definition at line 1705 of file channels.c.
References alog(), channel_::bans, channel_::bd, chaninfo_::c, channel_::ci, c_elist::count, debug, c_elist::entries, entry_delete(), ircdvars_::except, channel_::excepts, channel_::flood, ircdvars_::fmode, HASH, ircdvars_::invitemode, channel_::invites, ircd, ircdvars_::jmode, channel_::key, ircdvars_::Lmode, bandata_::mask, channel_::name, channel_::next, bandata_::next, channel_::prev, channel_::redirect, channel_::throttle, and channel_::topic.
Referenced by chan_deluser().
Definition at line 24 of file channels.c.
References anope_cmd_part(), anope_get_permchan_mode(), chaninfo_::bi, BSMinUsers, chan_delete(), channel_::ci, channel_::mode, channel_::name, channel_::c_userlist::next, user_::next, botinfo_::nick, s_BotServ, update_cs_lastseen(), channel_::c_userlist::user, channel_::usercount, and channel_::users.
Referenced by delete_user(), do_join(), do_kick(), and do_part().
| char* chan_get_modes | ( | Channel * | chan, | |
| int | complete, | |||
| int | plus | |||
| ) |
Definition at line 68 of file channels.c.
References CBM_MINUS_NO_ARG, cbmodeinfos, cbmodeinfo_::flag, cbmodeinfo_::flags, cbmodeinfo_::getvalue, cbmodeinfo_::mode, and channel_::mode.
Referenced by do_chanlist().
Definition at line 109 of file channels.c.
References user_::chans, and user_::u_chanlist::next.
Referenced by botchanmsgs(), chan_set_correct_modes(), and chan_set_modes().
Definition at line 124 of file channels.c.
References alog(), user_::chans, debug, and user_::u_chanlist::next.
Referenced by do_clear(), do_clearmodes(), and do_register().
Definition at line 143 of file channels.c.
References alog(), user_::chans, debug, channel_::name, user_::u_chanlist::next, and user_::nick.
Referenced by chan_set_correct_modes(), and chan_set_modes().
Set the correct modes, or remove the ones granted without permission, for the specified user on ths specified channel. This doesn't give modes to ignored users, but does remove them if needed.
| user | The user to give/remove modes to/from | |
| c | The channel to give/remove modes on | |
| give_modes | Set to 1 to give modes, 0 to not give modes |
Definition at line 1434 of file channels.c.
References ircdvars_::admin, ircdvars_::adminset, alog(), anope_cmd_mode(), CA_AUTODEOP, CA_AUTOHALFOP, CA_AUTOOP, CA_AUTOPROTECT, CA_AUTOVOICE, CA_HALFOPME, CA_OPDEOPME, CA_PROTECTME, chan_get_user_status(), chan_remove_user_status(), chan_set_user_status(), check_access(), channel_::ci, CI_SECUREOPS, CI_VERBOTEN, CUS_HALFOP, CUS_OP, CUS_OWNER, CUS_PROTECT, CUS_VOICE, debug, nickcore_::flags, chaninfo_::flags, get_ignore(), GET_USER, ircdvars_::halfop, ircd, is_founder(), is_sync(), is_ulined(), user_::na, server_::name, channel_::name, nickalias_::nc, NI_AUTOOP, user_::nick, ircdvars_::owner, ircdvars_::ownerset, ircdvars_::protect, user_::server, stripModePrefix(), channel_::usercount, and whosends.
Referenced by chan_set_modes(), do_enforce_secureops(), do_join(), do_setmodes(), and do_sjoin().
| void chan_set_key | ( | Channel * | chan, | |
| char * | value | |||
| ) |
Definition at line 1981 of file channels.c.
References alog(), debug, channel_::key, channel_::name, and sstrdup().
| void chan_set_modes | ( | const char * | source, | |
| Channel * | chan, | |||
| int | ac, | |||
| char ** | av, | |||
| int | check | |||
| ) |
Definition at line 161 of file channels.c.
References cmmode_::addmask, alog(), anope_cmd_mode(), CBM_MINUS_NO_ARG, cbmodes, chan_get_user_status(), chan_remove_user_status(), chan_set_correct_modes(), chan_set_user_status(), check_modes(), channel_::ci, CI_SECUREOPS, cmmodes, CUF_PROTECT_BOTSERV, cumodes, CUS_DEOPPED, CUS_HALFOP, CUS_OP, debug, cmmode_::delmask, find_byuid(), findbot(), finduser(), cbmode_::flag, chaninfo_::flags, cbmode_::flags, cumode_::flags, ircd, is_on_chan(), is_ulined(), merge_args(), channel_::mode, server_::name, channel_::name, user_::nick, botinfo_::nick, user_::server, cbmode_::setvalue, cumode_::status, ircdvars_::ts6, UseTS6, and whosends.
Referenced by addBan(), delBan(), do_ban(), do_clear(), do_clearmodes(), do_cmode(), do_deowner(), do_forbid(), do_mass_mode(), do_os_mode(), do_owner(), do_sjoin(), do_util(), join_user_update(), stick_all(), and stick_mask().
| void chan_set_throttle | ( | Channel * | chan, | |
| char * | value | |||
| ) |
Definition at line 1968 of file channels.c.
References alog(), debug, channel_::name, sstrdup(), and channel_::throttle.
Referenced by anope_event_capab().
Definition at line 360 of file channels.c.
References alog(), CA_AUTOOP, user_::chans, check_access(), channel_::ci, common_svsmode(), CUS_OP, debug, HelpChannel, ircd, channel_::name, user_::u_chanlist::next, user_::nick, stricmp(), and ircdvars_::supporthelper.
Referenced by chan_set_correct_modes(), and chan_set_modes().
| void del_ban | ( | Channel * | chan, | |
| char * | mask | |||
| ) |
Definition at line 1774 of file channels.c.
References alog(), channel_::bans, channel_::ci, c_elist::count, debug, elist_find_mask(), entry_delete(), is_stuck(), channel_::name, and stick_mask().
Referenced by anope_event_capab().
| void del_exception | ( | Channel * | chan, | |
| char * | mask | |||
| ) |
Definition at line 1799 of file channels.c.
References alog(), c_elist::count, debug, elist_find_mask(), entry_delete(), channel_::excepts, and channel_::name.
Referenced by anope_event_capab().
| void del_invite | ( | Channel * | chan, | |
| char * | mask | |||
| ) |
Definition at line 1820 of file channels.c.
References alog(), c_elist::count, debug, elist_find_mask(), entry_delete(), channel_::invites, and channel_::name.
Referenced by anope_event_capab().
| void do_cmode | ( | const char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1181 of file channels.c.
References alog(), chan_set_modes(), CI_VERBOTEN, cs_findchan(), debug, findchan(), chaninfo_::flags, ircd, ircdcap, merge_args(), channel_::server_modecount, channel_::server_modetime, ircdvars_::ts6, ircdcapab_::tsmode, uplink_capab, UseTS6, and UseTSMODE.
Referenced by _common_unban(), anope_event_mode(), anope_event_tmode(), bot_join(), bot_raw_ban(), bot_raw_mode(), check_ban(), check_kick(), and do_clear().
| void do_join | ( | const char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 554 of file channels.c.
References alog(), c, chan_deluser(), chan_set_correct_modes(), user_::chans, check_kick(), debug, EVENT_JOIN_CHANNEL, EVENT_PART_CHANNEL, EVENT_START, EVENT_STOP, find_byuid(), findchan(), finduser(), ircd, join_user_update(), merge_args(), user_::u_chanlist::next, user_::nick, send_event(), sstrdup(), ircdvars_::ts6, and UseTS6.
Referenced by anope_event_join().
| void do_kick | ( | const char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 636 of file channels.c.
References alog(), bot_join(), c, chan_deluser(), user_::chans, cs_findchan(), debug, EVENT_CHAN_KICK, find_byuid(), find_nickuid(), findbot(), finduser(), ircd, merge_args(), user_::u_chanlist::next, user_::nick, uid_::nick, s_BotServ, send_event(), stricmp(), ircdvars_::ts6, and UseTS6.
Referenced by anope_event_kick(), bot_kick(), bot_raw_ban(), bot_raw_kick(), do_akick(), do_ban(), do_clear(), do_cs_kick(), do_enforce_cmode_R(), do_enforce_restricted(), do_forbid(), do_os_kick(), do_suspend(), and sqline().
| void do_mass_mode | ( | char * | modes | ) |
Definition at line 2027 of file channels.c.
References anope_cmd_mode(), channel_::bouncy_modes, c, chan_set_modes(), firstchan(), channel_::name, nextchan(), s_OperServ, split_buf(), and sstrdup().
Referenced by runDefCon().
| void do_part | ( | const char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 708 of file channels.c.
References alog(), c, chan_deluser(), user_::chans, debug, EVENT_PART_CHANNEL, EVENT_START, EVENT_STOP, find_byuid(), finduser(), ircd, merge_args(), user_::u_chanlist::next, user_::nick, send_event(), sstrdup(), stricmp(), ircdvars_::ts6, and UseTS6.
Referenced by anope_event_part().
| void do_sjoin | ( | const char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 801 of file channels.c.
References add_ban(), add_exception(), add_invite(), alog(), anope_cmd_kick(), anope_cmd_mode(), anope_cmd_part(), base64dects(), chaninfo_::bi, bot_join(), c, chan_set_correct_modes(), chan_set_modes(), ircdvars_::chanreg, ircdvars_::chansqline, check_chan_sqline(), check_kick(), channel_::ci, channel_::creation_time, csmodes, cumodes, debug, EVENT_JOIN_CHANNEL, EVENT_START, EVENT_STOP, find_byuid(), findchan(), findserver(), findserver_uid(), finduser(), ircd, is_oper(), is_sync(), join_user_update(), channel_::mode, myStrGetToken(), channel_::name, channel_::c_userlist::next, user_::nick, botinfo_::nick, ircdvars_::regmode, restore_topic(), s_OperServ, send_event(), servlist, ircdvars_::sjb64, ircdvars_::sjoinbanchar, ircdvars_::sjoinexchar, ircdvars_::sjoininvchar, sstrdup(), channel_::topic_sync, ircdvars_::ts6, channel_::users, UseTS6, and whosends.
Referenced by anope_event_fjoin(), anope_event_join(), and anope_event_sjoin().
| void do_topic | ( | const char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1247 of file channels.c.
References alog(), base64dects(), c, check_topiclock(), channel_::ci, debug, EVENT_TOPIC_UPDATED, findchan(), ircd, is_sync(), chaninfo_::last_topic, chaninfo_::last_topic_setter, merge_args(), myStrGetToken(), record_topic(), send_event(), serv_uplink, ircdvars_::sjb64, sstrdup(), strscpy(), channel_::topic, channel_::topic_setter, channel_::topic_sync, and channel_::topic_time.
Referenced by anope_event_ftopic(), anope_event_tburst(), and anope_event_topic().
Find a entry identical to the given mask..
| list | EntryList that should be matched against | |
| mask | The *!*@* mask to match |
Definition at line 2454 of file channels.c.
References c_elist::entries, c_elist_entry::mask, c_elist_entry::next, and stricmp().
Referenced by del_ban(), del_exception(), and del_invite().
Match a nick, user, host, and ip to a list entry
| e | List that should be matched against | |
| nick | The nick to match | |
| user | The user to match | |
| host | The host to match | |
| ip | The ip to match |
Definition at line 2334 of file channels.c.
References c_elist::entries, entry_match(), and c_elist_entry::next.
Referenced by _elist_match_user(), and elist_match_mask().
Match a mask and ip to a list.
| list | EntryList that should be matched against | |
| mask | The nick!user mask to match | |
| ip | The ip to match |
Definition at line 2358 of file channels.c.
References elist_match(), c_elist::entries, and sstrdup().
Referenced by is_excepted_mask().
Definition at line 2438 of file channels.c.
References _elist_match_user().
Referenced by is_excepted().
Definition at line 2443 of file channels.c.
References _elist_match_user().
Create an entry and add it at the beginning of given list.
| list | The List the mask should be added to | |
| mask | The mask to parse and add to the list |
Definition at line 2176 of file channels.c.
References c_elist::count, c_elist::entries, entry_create(), c_elist_entry::next, c_elist_entry::prev, and sstrdup().
Referenced by add_ban(), add_exception(), and add_invite().
| Entry* entry_create | ( | char * | mask | ) |
This handles creating a new Entry. This function destroys and free's the given mask as a side effect.
| mask | Host/IP/CIDR mask to convert to an entry |
Definition at line 2076 of file channels.c.
References c_elist_entry::cidr_ip, c_elist_entry::cidr_mask, ircdvars_::cidrchanbei, c_elist_entry::host, ircd, c_elist_entry::mask, c_elist_entry::next, c_elist_entry::nick, c_elist_entry::prev, scalloc(), sstrdup(), str_is_cidr(), str_is_pure_wildcard(), str_is_wildcard(), c_elist_entry::type, and c_elist_entry::user.
Referenced by entry_add().
Delete the given entry from a given list.
| list | Linked list from which entry needs to be removed. | |
| e | The entry to be deleted, must be member of list. |
Definition at line 2204 of file channels.c.
References c_elist::count, c_elist::entries, c_elist_entry::host, c_elist_entry::mask, c_elist_entry::next, c_elist_entry::nick, c_elist_entry::prev, and c_elist_entry::user.
Referenced by add_ban(), chan_delete(), del_ban(), del_exception(), and del_invite().
Match the given Entry to the given user/host and optional IP addy
| e | Entry struct to match against | |
| nick | Nick to match against | |
| user | User to match against | |
| host | Host to match against | |
| ip | IP to match against, set to 0 to not match this |
Definition at line 2255 of file channels.c.
References c_elist_entry::cidr_ip, c_elist_entry::cidr_mask, ircdvars_::cidrchanbei, ENTRYTYPE_CIDR4, ENTRYTYPE_HOST, ENTRYTYPE_HOST_WILD, ENTRYTYPE_NICK, ENTRYTYPE_NICK_WILD, ENTRYTYPE_NONE, ENTRYTYPE_USER, ENTRYTYPE_USER_WILD, c_elist_entry::host, ircd, match_wild_nocase(), c_elist_entry::nick, stricmp(), c_elist_entry::type, and c_elist_entry::user.
Referenced by _common_unban(), add_ban(), bot_join(), elist_match(), and entry_match_mask().
Match the given Entry to the given hostmask and optional IP addy.
| e | Entry struct to match against | |
| mask | Hostmask to match against | |
| ip | IP to match against, set to 0 to not match this |
Definition at line 2293 of file channels.c.
References entry_match(), and sstrdup().
Referenced by stick_mask().
| Channel* findchan | ( | const char * | chan | ) |
Definition at line 392 of file channels.c.
References alog(), c, debug, HASH, channel_::name, channel_::next, and stricmp().
Referenced by alog(), anope_event_bmask(), anope_event_fmode(), anope_event_tburst(), anope_event_topic(), check_kick(), delBan(), do_act(), do_akick(), do_ban(), do_chankill(), do_clear(), do_clearmodes(), do_cmode(), do_cs_kick(), do_cs_topic(), do_deowner(), do_forbid(), do_invite(), do_join(), do_os_kick(), do_os_mode(), do_owner(), do_register(), do_say(), do_set(), do_sjoin(), do_suspend(), do_tban(), do_topic(), do_unban(), do_userlist(), do_util(), inspircd_cmd_mode(), memo_send_from(), my_cs_appendtopic(), my_cs_enforce(), record_topic(), and restore_topic().
| Channel* firstchan | ( | void | ) |
Definition at line 428 of file channels.c.
References alog(), debug, channel_::name, and next_index.
Referenced by do_mass_mode(), and restore_unsynced_topics().
| void get_channel_stats | ( | long * | nrec, | |
| long * | memuse | |||
| ) |
Definition at line 457 of file channels.c.
References channel_::bans, channel_::bd, ircdvars_::except, channel_::excepts, channel_::flood, ircdvars_::fmode, get_memuse(), ircdvars_::invitemode, channel_::invites, ircd, ircdvars_::jmode, channel_::key, ircdvars_::Lmode, bandata_::mask, bandata_::next, channel_::c_userlist::next, channel_::next, channel_::redirect, channel_::throttle, channel_::topic, and channel_::users.
Referenced by do_stats().
| char* get_flood | ( | Channel * | chan | ) |
Definition at line 1843 of file channels.c.
References channel_::flood.
| char* get_key | ( | Channel * | chan | ) |
Definition at line 1857 of file channels.c.
References channel_::key.
| char* get_limit | ( | Channel * | chan | ) |
Definition at line 1864 of file channels.c.
References channel_::limit, and snprintf().
| long get_memuse | ( | EList * | list | ) |
Gets the total memory use of an entrylit.
| list | The list we should estimate the mem use of. |
Definition at line 2474 of file channels.c.
References c_elist::count, c_elist::entries, c_elist_entry::host, c_elist_entry::mask, c_elist_entry::next, c_elist_entry::nick, and c_elist_entry::user.
Referenced by get_channel_stats().
| char* get_redirect | ( | Channel * | chan | ) |
Definition at line 1877 of file channels.c.
References channel_::redirect.
| char* get_throttle | ( | Channel * | chan | ) |
Definition at line 1850 of file channels.c.
References channel_::throttle.
| char* get_unkwn | ( | Channel * | chan | ) |
Definition at line 1886 of file channels.c.
Definition at line 515 of file channels.c.
References user_::chans, and user_::u_chanlist::next.
Referenced by bot_raw_kick(), bot_raw_mode(), chan_set_modes(), do_ban(), do_cs_kick(), do_deowner(), do_fantasy(), do_owner(), and do_util().
Definition at line 1893 of file channels.c.
References alog(), anope_cmd_mode(), anope_cmd_part(), chaninfo_::bi, bot_join(), c, user_::u_chanlist::chan, chan_adduser2(), chan_create(), chan_set_modes(), ircdvars_::chanreg, user_::chans, channel_::ci, channel_::creation_time, debug, ircd, channel_::mode, channel_::name, channel_::c_userlist::next, user_::nick, botinfo_::nick, user_::u_chanlist::prev, ircdvars_::regmode, s_OperServ, scalloc(), channel_::users, and whosends.
Referenced by do_join(), and do_sjoin().
| EList* list_create | ( | ) |
Create and initialize a new entrylist
Definition at line 2234 of file channels.c.
References c_elist::count, c_elist::entries, and scalloc().
Referenced by add_ban(), add_exception(), and add_invite().
Definition at line 531 of file channels.c.
References channel_::c_userlist::next, nick_recognized(), and channel_::users.
Referenced by do_fantasy().
| Channel* nextchan | ( | void | ) |
Definition at line 439 of file channels.c.
References alog(), debug, channel_::name, channel_::next, and next_index.
Referenced by do_mass_mode(), and restore_unsynced_topics().
| void restore_unsynced_topics | ( | void | ) |
Definition at line 2058 of file channels.c.
References c, firstchan(), channel_::name, nextchan(), restore_topic(), and channel_::topic_sync.
Referenced by finish_sync().
| void set_flood | ( | Channel * | chan, | |
| char * | value | |||
| ) |
Definition at line 1955 of file channels.c.
References alog(), debug, channel_::flood, channel_::name, and sstrdup().
Referenced by anope_event_capab().
| void set_limit | ( | Channel * | chan, | |
| char * | value | |||
| ) |
Definition at line 1994 of file channels.c.
References alog(), debug, channel_::limit, and channel_::name.
| void set_redirect | ( | Channel * | chan, | |
| char * | value | |||
| ) |
Definition at line 2005 of file channels.c.
References alog(), debug, channel_::name, channel_::redirect, and sstrdup().
Referenced by anope_event_capab().
| void set_unkwn | ( | Channel * | chan, | |
| char * | value | |||
| ) |
Definition at line 2020 of file channels.c.
Referenced by anope_event_capab().
Definition at line 17 of file channels.c.
Definition at line 425 of file channels.c.
Referenced by addCommand(), addEventHandler(), addEventHook(), addMessage(), addModule(), delCommand(), delEventHandler(), delEventHook(), delMessage(), delModule(), displayCommandFromHash(), displayEvtMessageFromHash(), displayHookFromHash(), displayMessageFromHash(), do_help_cmd(), do_modlist(), do_run_cmd(), encryptionModuleLoaded(), event_message_process(), event_process_hook(), findCommand(), findEventHandler(), findEventHook(), findHostCore(), findMessage(), findModule(), hsreq_save_db(), listOut(), moduleCallBackFindEntry(), moduleCleanStruct(), moduleDataDebug(), moduleDelAllData(), moduleDelCallback(), moduleDelData(), moduleDisplayHelp(), moduleGetData(), prepForUnload(), process(), protocolModuleLoaded(), save_hs_dbase(), save_hs_rdb_dbase(), show_list(), and showModuleCmdLoaded().
int next_index [static] |
Definition at line 426 of file channels.c.
Referenced by firstchan(), and nextchan().
1.7.1