Go to the source code of this file.
Data Structures | |
struct | memstruct |
struct | maskstruct |
struct | maskrec |
struct | chan_t |
struct | chanset_t |
struct | msgq_head |
struct | msgq |
Defines | |
#define | CHANMETA "#&!+" |
#define | NOHALFOPS_MODES "ahoq" |
#define | MODES_PER_LINE_MAX 6 |
#define | HALFOP_CANTDOMODE(_a) (!me_op(chan) && (!me_halfop(chan) || (strchr(NOHALFOPS_MODES, _a) != NULL))) |
#define | HALFOP_CANDOMODE(_a) (me_op(chan) || (me_halfop(chan) && (strchr(NOHALFOPS_MODES, _a) == NULL))) |
#define | CHANOP 0x00001 |
#define | CHANVOICE 0x00002 |
#define | FAKEOP 0x00004 |
#define | SENTOP 0x00008 |
#define | SENTDEOP 0x00010 |
#define | SENTKICK 0x00020 |
#define | SENTVOICE 0x00040 |
#define | SENTDEVOICE 0x00080 |
#define | WASOP 0x00100 |
#define | STOPWHO 0x00200 |
#define | FULL_DELAY 0x00400 |
#define | STOPCHECK 0x00800 |
#define | CHANHALFOP 0x01000 |
#define | FAKEHALFOP 0x02000 |
#define | SENTHALFOP 0x04000 |
#define | SENTDEHALFOP 0x08000 |
#define | WASHALFOP 0x10000 |
#define | WHO_SYNCED 0x20000 |
#define | chan_hasvoice(x) (x->flags & CHANVOICE) |
#define | chan_hasop(x) (x->flags & CHANOP) |
#define | chan_hashalfop(x) (x->flags & CHANHALFOP) |
#define | chan_fakeop(x) (x->flags & FAKEOP) |
#define | chan_fakehalfop(x) (x->flags & FAKEHALFOP) |
#define | chan_sentop(x) (x->flags & SENTOP) |
#define | chan_sentdeop(x) (x->flags & SENTDEOP) |
#define | chan_senthalfop(x) (x->flags & SENTHALFOP) |
#define | chan_sentdehalfop(x) (x->flags & SENTDEHALFOP) |
#define | chan_sentkick(x) (x->flags & SENTKICK) |
#define | chan_sentvoice(x) (x->flags & SENTVOICE) |
#define | chan_sentdevoice(x) (x->flags & SENTDEVOICE) |
#define | chan_issplit(x) (x->split > 0) |
#define | chan_wasop(x) (x->flags & WASOP) |
#define | chan_washalfop(x) (x->flags & WASHALFOP) |
#define | chan_stopcheck(x) (x->flags & STOPCHECK) |
#define | chan_whosynced(x) (x->flags & WHO_SYNCED) |
#define | MASKREC_STICKY 1 |
#define | MASKREC_PERM 2 |
#define | CHANINV 0x0001 |
#define | CHANPRIV 0x0002 |
#define | CHANSEC 0x0004 |
#define | CHANMODER 0x0008 |
#define | CHANTOPIC 0x0010 |
#define | CHANNOMSG 0x0020 |
#define | CHANLIMIT 0x0040 |
#define | CHANKEY 0x0080 |
#define | CHANANON 0x0100 |
#define | CHANQUIET 0x0200 |
#define | CHANNOCLR 0x0400 |
#define | CHANREGON 0x0800 |
#define | CHANMODREG 0x1000 |
#define | CHANNOCTCP 0x2000 |
#define | CHANLONLY 0x4000 |
#define | CHANDELJN 0x8000 |
#define | CHANSTRIP 0x10000 |
#define | CHANNONOTC 0x20000 |
#define | CHANINVIS 0x40000 |
#define | CHANNOAMSG 0x80000 |
#define | CHAN_ENFORCEBANS 0x0001 |
#define | CHAN_DYNAMICBANS 0x0002 |
#define | CHAN_NOUSERBANS 0x0004 |
#define | CHAN_OPONJOIN 0x0008 |
#define | CHAN_BITCH 0x0010 |
#define | CHAN_GREET 0x0020 |
#define | CHAN_PROTECTOPS 0x0040 |
#define | CHAN_LOGSTATUS 0x0080 |
#define | CHAN_REVENGE 0x0100 |
#define | CHAN_SECRET 0x0200 |
#define | CHAN_AUTOVOICE 0x0400 |
#define | CHAN_CYCLE 0x0800 |
#define | CHAN_DONTKICKOPS 0x1000 |
#define | CHAN_INACTIVE 0x2000 |
#define | CHAN_PROTECTFRIENDS 0x4000 |
#define | CHAN_SHARED 0x8000 |
#define | CHAN_SEEN 0x10000 |
#define | CHAN_REVENGEBOT 0x20000 |
#define | CHAN_NODESYNCH 0x40000 |
#define | CHAN_AUTOHALFOP 0x80000 |
#define | CHAN_PROTECTHALFOPS 0x100000 |
#define | CHAN_ACTIVE 0x200000 |
#define | CHAN_WHINED 0x1000000 |
#define | CHAN_PEND 0x2000000 |
#define | CHAN_FLAGGED 0x4000000 |
#define | CHAN_STATIC 0x8000000 |
#define | CHAN_ASKEDBANS 0x10000000 |
#define | CHAN_ASKEDMODES 0x20000000 |
#define | CHAN_JUPED 0x40000000 |
#define | CHAN_STOP_CYCLE 0x80000000 |
#define | CHAN_ASKED_EXEMPTS 0x0001 |
#define | CHAN_ASKED_INVITED 0x0002 |
#define | CHAN_DYNAMICEXEMPTS 0x0004 |
#define | CHAN_NOUSEREXEMPTS 0x0008 |
#define | CHAN_DYNAMICINVITES 0x0010 |
#define | CHAN_NOUSERINVITES 0x0020 |
#define | channel_hidden(chan) (chan->channel.mode & (CHANPRIV | CHANSEC)) |
#define | channel_optopic(chan) (chan->channel.mode & CHANTOPIC) |
#define | channel_djoins(chan) (chan->status & (CHANDELJN | CHANINVIS)) |
#define | channel_active(chan) (chan->status & CHAN_ACTIVE) |
#define | channel_pending(chan) (chan->status & CHAN_PEND) |
#define | channel_bitch(chan) (chan->status & CHAN_BITCH) |
#define | channel_nodesynch(chan) (chan->status & CHAN_NODESYNCH) |
#define | channel_autoop(chan) (chan->status & CHAN_OPONJOIN) |
#define | channel_autovoice(chan) (chan->status & CHAN_AUTOVOICE) |
#define | channel_autohalfop(chan) (chan->status & CHAN_AUTOHALFOP) |
#define | channel_greet(chan) (chan->status & CHAN_GREET) |
#define | channel_logstatus(chan) (chan->status & CHAN_LOGSTATUS) |
#define | channel_enforcebans(chan) (chan->status & CHAN_ENFORCEBANS) |
#define | channel_revenge(chan) (chan->status & CHAN_REVENGE) |
#define | channel_dynamicbans(chan) (chan->status & CHAN_DYNAMICBANS) |
#define | channel_nouserbans(chan) (chan->status & CHAN_NOUSERBANS) |
#define | channel_protectops(chan) (chan->status & CHAN_PROTECTOPS) |
#define | channel_protecthalfops(chan) (chan->status & CHAN_PROTECTHALFOPS) |
#define | channel_protectfriends(chan) (chan->status & CHAN_PROTECTFRIENDS) |
#define | channel_dontkickops(chan) (chan->status & CHAN_DONTKICKOPS) |
#define | channel_secret(chan) (chan->status & CHAN_SECRET) |
#define | channel_shared(chan) (chan->status & CHAN_SHARED) |
#define | channel_static(chan) (chan->status & CHAN_STATIC) |
#define | channel_cycle(chan) (chan->status & CHAN_CYCLE) |
#define | channel_seen(chan) (chan->status & CHAN_SEEN) |
#define | channel_inactive(chan) (chan->status & CHAN_INACTIVE) |
#define | channel_revengebot(chan) (chan->status & CHAN_REVENGEBOT) |
#define | channel_dynamicexempts(chan) (chan->ircnet_status & CHAN_DYNAMICEXEMPTS) |
#define | channel_nouserexempts(chan) (chan->ircnet_status & CHAN_NOUSEREXEMPTS) |
#define | channel_dynamicinvites(chan) (chan->ircnet_status & CHAN_DYNAMICINVITES) |
#define | channel_nouserinvites(chan) (chan->ircnet_status & CHAN_NOUSERINVITES) |
#define | channel_juped(chan) (chan->status & CHAN_JUPED) |
#define | channel_stop_cycle(chan) (chan->status & CHAN_STOP_CYCLE) |
#define | channel_whined(chan) (chan->status & CHAN_WHINED) |
Typedefs | |
typedef struct memstruct | memberlist |
typedef struct maskstruct | masklist |
Functions | |
memberlist * | ismember (struct chanset_t *, char *) |
struct chanset_t * | findchan (const char *name) |
struct chanset_t * | findchan_by_dname (const char *name) |
Variables | |
maskrec * | global_bans |
maskrec * | global_exempts |
maskrec * | global_invites |
#define CHAN_ACTIVE 0x200000 |
Definition at line 235 of file chan.h.
Referenced by got001(), got315(), got437(), got442(), gotjoin(), gotkick(), gotpart(), irc_report(), irc_start(), msg_go(), reset_chan_info(), tell_bans(), tell_exempts(), and tell_invites().
#define CHAN_ASKED_EXEMPTS 0x0001 |
Definition at line 246 of file chan.h.
Referenced by got349(), irc_start(), recheck_channel(), and reset_chan_info().
#define CHAN_ASKED_INVITED 0x0002 |
Definition at line 247 of file chan.h.
Referenced by got347(), irc_start(), recheck_channel(), and reset_chan_info().
#define CHAN_ASKEDBANS 0x10000000 |
Definition at line 241 of file chan.h.
Referenced by got368(), irc_start(), and reset_chan_info().
#define CHAN_ASKEDMODES 0x20000000 |
Definition at line 242 of file chan.h.
Referenced by got324(), gotmode(), recheck_channel(), recheck_channel_modes(), and reset_chan_info().
#define CHAN_AUTOHALFOP 0x80000 |
Definition at line 233 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_AUTOVOICE 0x0400 |
Definition at line 224 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_BITCH 0x0010 |
Definition at line 218 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_CYCLE 0x0800 |
Definition at line 225 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_DONTKICKOPS 0x1000 |
Definition at line 226 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_DYNAMICBANS 0x0002 |
Definition at line 215 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_DYNAMICEXEMPTS 0x0004 |
Definition at line 249 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_DYNAMICINVITES 0x0010 |
Definition at line 251 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_ENFORCEBANS 0x0001 |
Definition at line 214 of file chan.h.
Referenced by cmd_chaninfo().
#define chan_fakehalfop | ( | x | ) | (x->flags & FAKEHALFOP) |
#define chan_fakeop | ( | x | ) | (x->flags & FAKEOP) |
Definition at line 81 of file chan.h.
Referenced by cmd_channel(), and gotmode().
#define CHAN_FLAGGED 0x4000000 |
Definition at line 239 of file chan.h.
Referenced by read_channels().
#define CHAN_GREET 0x0020 |
Definition at line 219 of file chan.h.
Referenced by cmd_chaninfo().
#define chan_hashalfop | ( | x | ) | (x->flags & CHANHALFOP) |
Definition at line 80 of file chan.h.
Referenced by check_this_member(), cmd_channel(), gotjoin(), gotmode(), me_halfop(), real_add_mode(), and status_log().
#define chan_hasop | ( | x | ) | (x->flags & CHANOP) |
Definition at line 79 of file chan.h.
Referenced by any_ops(), check_expired_chanstuff(), check_this_member(), cmd_channel(), cmd_kick(), cmd_kickban(), detect_chan_flood(), expired_mask(), got_dehalfop(), got_deop(), gotjoin(), gotmode(), gotmsg(), kick_all(), me_op(), punish_badguy(), real_add_mode(), recheck_channel(), and status_log().
#define chan_hasvoice | ( | x | ) | (x->flags & CHANVOICE) |
Definition at line 78 of file chan.h.
Referenced by check_this_member(), cmd_channel(), me_voice(), real_add_mode(), and status_log().
#define CHAN_INACTIVE 0x2000 |
Definition at line 227 of file chan.h.
Referenced by cmd_chaninfo(), and gotjoin().
#define chan_issplit | ( | x | ) | (x->split > 0) |
Definition at line 90 of file chan.h.
Referenced by check_expired_chanstuff(), check_lonely_channel(), cmd_channel(), cmd_invite(), do_seen(), and kick_all().
#define CHAN_JUPED 0x40000000 |
Definition at line 243 of file chan.h.
Referenced by connect_server(), got437(), gotjoin(), and irc_report().
#define CHAN_LOGSTATUS 0x0080 |
Definition at line 221 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_NODESYNCH 0x40000 |
Definition at line 232 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_NOUSERBANS 0x0004 |
Definition at line 216 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_NOUSEREXEMPTS 0x0008 |
Definition at line 250 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_NOUSERINVITES 0x0020 |
Definition at line 252 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_OPONJOIN 0x0008 |
Definition at line 217 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_PEND 0x2000000 |
Definition at line 238 of file chan.h.
Referenced by got001(), got315(), got_dehalfop(), got_deop(), got_halfop(), got_op(), gotjoin(), gotkick(), gotmode(), gotpart(), irc_report(), irc_start(), and reset_chan_info().
#define CHAN_PROTECTFRIENDS 0x4000 |
Definition at line 228 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_PROTECTHALFOPS 0x100000 |
Definition at line 234 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_PROTECTOPS 0x0040 |
Definition at line 220 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_REVENGE 0x0100 |
Definition at line 222 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_REVENGEBOT 0x20000 |
Definition at line 231 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_SECRET 0x0200 |
Definition at line 223 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_SEEN 0x10000 |
Definition at line 230 of file chan.h.
Referenced by cmd_chaninfo().
#define chan_sentdehalfop | ( | x | ) | (x->flags & SENTDEHALFOP) |
Definition at line 86 of file chan.h.
Referenced by gotnick(), and real_add_mode().
#define chan_sentdeop | ( | x | ) | (x->flags & SENTDEOP) |
Definition at line 84 of file chan.h.
Referenced by cmd_channel(), gotnick(), and real_add_mode().
#define chan_sentdevoice | ( | x | ) | (x->flags & SENTDEVOICE) |
Definition at line 89 of file chan.h.
Referenced by gotnick(), and real_add_mode().
#define chan_senthalfop | ( | x | ) | (x->flags & SENTHALFOP) |
Definition at line 85 of file chan.h.
Referenced by flush_modes(), gotnick(), and real_add_mode().
#define chan_sentkick | ( | x | ) | (x->flags & SENTKICK) |
Definition at line 87 of file chan.h.
Referenced by check_this_member(), cmd_channel(), detect_chan_flood(), gotjoin(), gotmsg(), gotnick(), gotnotice(), kick_all(), punish_badguy(), and refresh_ban_kick().
#define chan_sentop | ( | x | ) | (x->flags & SENTOP) |
Definition at line 83 of file chan.h.
Referenced by check_this_member(), cmd_channel(), flush_modes(), gotnick(), and real_add_mode().
#define chan_sentvoice | ( | x | ) | (x->flags & SENTVOICE) |
Definition at line 88 of file chan.h.
Referenced by flush_modes(), gotnick(), and real_add_mode().
#define CHAN_SHARED 0x8000 |
Definition at line 229 of file chan.h.
Referenced by cmd_chaninfo(), write_bans(), write_exempts(), and write_invites().
#define CHAN_STATIC 0x8000000 |
Definition at line 240 of file chan.h.
Referenced by cmd_chaninfo().
#define CHAN_STOP_CYCLE 0x80000000 |
#define chan_stopcheck | ( | x | ) | (x->flags & STOPCHECK) |
#define chan_washalfop | ( | x | ) | (x->flags & WASHALFOP) |
Definition at line 92 of file chan.h.
Referenced by got_halfop().
#define chan_wasop | ( | x | ) | (x->flags & WASOP) |
#define CHAN_WHINED 0x1000000 |
Definition at line 237 of file chan.h.
Referenced by check_lonely_channel().
#define chan_whosynced | ( | x | ) | (x->flags & WHO_SYNCED) |
Definition at line 94 of file chan.h.
Referenced by sync_members().
#define CHANANON 0x0100 |
Definition at line 143 of file chan.h.
Referenced by check_lonely_channel(), get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANDELJN 0x8000 |
Definition at line 150 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANHALFOP 0x01000 |
Definition at line 71 of file chan.h.
Referenced by got352or4(), got_dehalfop(), got_deop(), and got_halfop().
#define CHANINV 0x0001 |
Definition at line 135 of file chan.h.
Referenced by check_expired_chanstuff(), check_expired_invites(), cmd_invite(), get_mode_protect(), getchanmode(), got324(), got_uninvite(), gotmode(), msg_invite(), msg_key(), recheck_channel_modes(), recheck_invites(), refresh_invite(), and set_mode_protect().
#define CHANINVIS 0x40000 |
Definition at line 153 of file chan.h.
Referenced by getchanmode(), got324(), and gotmode().
#define CHANKEY 0x0080 |
Definition at line 142 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), got_key(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANLIMIT 0x0040 |
Definition at line 141 of file chan.h.
Referenced by get_mode_protect(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANLONLY 0x4000 |
Definition at line 149 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANMETA "#&!+" |
Definition at line 31 of file chan.h.
Referenced by cmd_act(), cmd_botattr(), cmd_chanset(), cmd_chattr(), cmd_chinfo(), cmd_console(), cmd_info(), cmd_kick(), cmd_kickban(), cmd_match(), cmd_mkdir(), cmd_mns_ban(), cmd_mns_chan(), cmd_mns_exempt(), cmd_mns_invite(), cmd_pls_ban(), cmd_pls_chan(), cmd_pls_exempt(), cmd_pls_invite(), cmd_say(), cmd_topic(), do_seen(), got354(), got437(), gotmode(), gotmsg(), gotnotice(), laston_tcl_set(), msg_info(), tcl_botattr(), tcl_chattr(), tcl_logfile(), tell_bans(), tell_exempts(), and tell_invites().
#define CHANMODER 0x0008 |
Definition at line 138 of file chan.h.
Referenced by cmd_act(), cmd_say(), get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANMODREG 0x1000 |
Definition at line 147 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define channel_active | ( | chan | ) | (chan->status & CHAN_ACTIVE) |
Definition at line 263 of file chan.h.
Referenced by add_bot_hostmask(), channels_report(), check_expired_chanstuff(), check_lonely_channel(), cmd_channel(), cmd_dehalfop(), cmd_deop(), cmd_devoice(), cmd_halfop(), cmd_invite(), cmd_kick(), cmd_kickban(), cmd_op(), cmd_reset(), cmd_topic(), cmd_voice(), got346(), got348(), got367(), gotinvite(), gotjoin(), gotkick(), gotmode(), gotpart(), minutely_checks(), msg_halfop(), msg_invite(), msg_key(), msg_op(), msg_status(), msg_voice(), and status_log().
#define channel_autohalfop | ( | chan | ) | (chan->status & CHAN_AUTOHALFOP) |
Definition at line 269 of file chan.h.
Referenced by channels_report(), check_this_member(), got_halfop(), gotjoin(), and write_channels().
#define channel_autoop | ( | chan | ) | (chan->status & CHAN_OPONJOIN) |
Definition at line 267 of file chan.h.
Referenced by channels_report(), check_this_member(), got_op(), gotjoin(), and write_channels().
#define channel_autovoice | ( | chan | ) | (chan->status & CHAN_AUTOVOICE) |
Definition at line 268 of file chan.h.
Referenced by channels_report(), check_this_member(), gotjoin(), gotmode(), and write_channels().
#define channel_bitch | ( | chan | ) | (chan->status & CHAN_BITCH) |
Definition at line 265 of file chan.h.
Referenced by channels_report(), check_this_member(), cmd_halfop(), cmd_op(), got_dehalfop(), got_deop(), got_halfop(), got_op(), and write_channels().
#define channel_cycle | ( | chan | ) | (chan->status & CHAN_CYCLE) |
Definition at line 283 of file chan.h.
Referenced by channels_report(), check_lonely_channel(), and write_channels().
#define channel_djoins | ( | chan | ) | (chan->status & (CHANDELJN | CHANINVIS)) |
Definition at line 261 of file chan.h.
Referenced by killmember().
#define channel_dontkickops | ( | chan | ) | (chan->status & CHAN_DONTKICKOPS) |
Definition at line 279 of file chan.h.
Referenced by channels_report(), detect_chan_flood(), gotmode(), gotmsg(), gotnotice(), kick_all(), punish_badguy(), and write_channels().
#define channel_dynamicbans | ( | chan | ) | (chan->status & CHAN_DYNAMICBANS) |
Definition at line 274 of file chan.h.
Referenced by channels_report(), check_expired_chanstuff(), check_this_ban(), got_unban(), recheck_bans(), and write_channels().
#define channel_dynamicexempts | ( | chan | ) | (chan->ircnet_status & CHAN_DYNAMICEXEMPTS) |
Definition at line 287 of file chan.h.
Referenced by channels_report(), check_expired_chanstuff(), got_unexempt(), recheck_exempts(), and write_channels().
#define channel_dynamicinvites | ( | chan | ) | (chan->ircnet_status & CHAN_DYNAMICINVITES) |
Definition at line 289 of file chan.h.
Referenced by channels_report(), check_expired_chanstuff(), got_uninvite(), recheck_invites(), and write_channels().
#define channel_enforcebans | ( | chan | ) | (chan->status & CHAN_ENFORCEBANS) |
Definition at line 272 of file chan.h.
Referenced by channels_report(), detect_chan_flood(), got_ban(), gotjoin(), recheck_channel(), and write_channels().
#define channel_greet | ( | chan | ) | (chan->status & CHAN_GREET) |
Definition at line 270 of file chan.h.
Referenced by channels_report(), gotjoin(), and write_channels().
#define channel_hidden | ( | chan | ) | (chan->channel.mode & (CHANPRIV | CHANSEC)) |
Definition at line 259 of file chan.h.
Referenced by msg_who(), and msg_whois().
#define channel_inactive | ( | chan | ) | (chan->status & CHAN_INACTIVE) |
Definition at line 285 of file chan.h.
Referenced by channels_report(), check_expired_chanstuff(), check_lonely_channel(), do_channel_part(), got001(), got442(), gotinvite(), gotjoin(), gotkick(), gotpart(), irc_report(), irc_start(), recheck_channel(), remote_tell_who(), reset_chan_info(), status_log(), and write_channels().
#define channel_juped | ( | chan | ) | (chan->status & CHAN_JUPED) |
#define channel_logstatus | ( | chan | ) | (chan->status & CHAN_LOGSTATUS) |
Definition at line 271 of file chan.h.
Referenced by channels_report(), check_lonely_channel(), status_log(), and write_channels().
#define channel_nodesynch | ( | chan | ) | (chan->status & CHAN_NODESYNCH) |
Definition at line 266 of file chan.h.
Referenced by channels_report(), gotmode(), and write_channels().
#define channel_nouserbans | ( | chan | ) | (chan->status & CHAN_NOUSERBANS) |
Definition at line 275 of file chan.h.
Referenced by channels_report(), got_ban(), recheck_channel(), and write_channels().
#define channel_nouserexempts | ( | chan | ) | (chan->ircnet_status & CHAN_NOUSEREXEMPTS) |
Definition at line 288 of file chan.h.
Referenced by channels_report(), got_exempt(), recheck_channel(), and write_channels().
#define channel_nouserinvites | ( | chan | ) | (chan->ircnet_status & CHAN_NOUSERINVITES) |
Definition at line 290 of file chan.h.
Referenced by channels_report(), got_invite(), recheck_channel(), and write_channels().
#define channel_optopic | ( | chan | ) | (chan->channel.mode & CHANTOPIC) |
Definition at line 260 of file chan.h.
Referenced by cmd_topic().
#define channel_pending | ( | chan | ) | (chan->status & CHAN_PEND) |
Definition at line 264 of file chan.h.
Referenced by channels_report(), check_expired_chanstuff(), check_lonely_channel(), cmd_channel(), got315(), got346(), got348(), got367(), got_ban(), got_dehalfop(), got_deop(), got_exempt(), got_halfop(), got_invite(), got_op(), got_unban(), got_unexempt(), got_uninvite(), gotinvite(), gotjoin(), gotkick(), gotmode(), gotpart(), killmember(), msg_status(), and reset_chan_info().
#define channel_protectfriends | ( | chan | ) | (chan->status & CHAN_PROTECTFRIENDS) |
Definition at line 278 of file chan.h.
Referenced by channels_report(), got_dehalfop(), got_deop(), want_to_revenge(), and write_channels().
#define channel_protecthalfops | ( | chan | ) | (chan->status & CHAN_PROTECTHALFOPS) |
Definition at line 277 of file chan.h.
Referenced by channels_report(), got_dehalfop(), and write_channels().
#define channel_protectops | ( | chan | ) | (chan->status & CHAN_PROTECTOPS) |
Definition at line 276 of file chan.h.
Referenced by channels_report(), got_deop(), want_to_revenge(), and write_channels().
#define channel_revenge | ( | chan | ) | (chan->status & CHAN_REVENGE) |
Definition at line 273 of file chan.h.
Referenced by channels_report(), want_to_revenge(), and write_channels().
#define channel_revengebot | ( | chan | ) | (chan->status & CHAN_REVENGEBOT) |
Definition at line 286 of file chan.h.
Referenced by want_to_revenge(), and write_channels().
#define channel_secret | ( | chan | ) | (chan->status & CHAN_SECRET) |
Definition at line 280 of file chan.h.
Referenced by bot_infoq(), channels_report(), cmd_botinfo(), remote_tell_who(), and write_channels().
#define channel_seen | ( | chan | ) | (chan->status & CHAN_SEEN) |
Definition at line 284 of file chan.h.
Referenced by channels_report(), pub_seen(), and write_channels().
#define channel_shared | ( | chan | ) | (chan->status & CHAN_SHARED) |
Definition at line 281 of file chan.h.
Referenced by channels_report(), finish_share(), set_user_flagrec(), share_chattr(), share_chchinfo(), share_mns_banchan(), share_mns_chrec(), share_mns_exemptchan(), share_mns_invitechan(), share_pls_banchan(), share_pls_chrec(), share_pls_exemptchan(), share_pls_invitechan(), share_stick_ban(), share_stick_exempt(), share_stick_invite(), shareout_mod(), start_sending_users(), and write_channels().
#define channel_static | ( | chan | ) | (chan->status & CHAN_STATIC) |
Definition at line 282 of file chan.h.
Referenced by channels_report(), cmd_chaninfo(), cmd_mns_chan(), and write_channels().
#define channel_stop_cycle | ( | chan | ) | (chan->status & CHAN_STOP_CYCLE) |
Definition at line 292 of file chan.h.
Referenced by check_lonely_channel().
#define channel_whined | ( | chan | ) | (chan->status & CHAN_WHINED) |
Definition at line 293 of file chan.h.
Referenced by check_lonely_channel().
#define CHANNOAMSG 0x80000 |
Definition at line 154 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANNOCLR 0x0400 |
Definition at line 145 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANNOCTCP 0x2000 |
Definition at line 148 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANNOMSG 0x0020 |
Definition at line 140 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANNONOTC 0x20000 |
Definition at line 152 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANOP 0x00001 |
Definition at line 59 of file chan.h.
Referenced by cmd_kickban(), got352or4(), got_deop(), and got_op().
#define CHANPRIV 0x0002 |
Definition at line 136 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANQUIET 0x0200 |
Definition at line 144 of file chan.h.
Referenced by get_mode_protect(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANREGON 0x0800 |
Definition at line 146 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANSEC 0x0004 |
Definition at line 137 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANSTRIP 0x10000 |
Definition at line 151 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANTOPIC 0x0010 |
Definition at line 139 of file chan.h.
Referenced by get_mode_protect(), getchanmode(), got324(), gotmode(), recheck_channel_modes(), and set_mode_protect().
#define CHANVOICE 0x00002 |
Definition at line 60 of file chan.h.
Referenced by got352or4(), got_dehalfop(), got_deop(), and gotmode().
#define FAKEHALFOP 0x02000 |
Definition at line 72 of file chan.h.
Referenced by got_dehalfop(), and got_halfop().
#define FAKEOP 0x00004 |
Definition at line 61 of file chan.h.
Referenced by got_deop(), and got_op().
#define FULL_DELAY 0x00400 |
Definition at line 69 of file chan.h.
Referenced by flush_modes(), and set_delay().
#define HALFOP_CANDOMODE | ( | _a | ) | (me_op(chan) || (me_halfop(chan) && (strchr(NOHALFOPS_MODES, _a) == NULL))) |
Definition at line 44 of file chan.h.
Referenced by check_this_member(), got_dehalfop(), got_deop(), got_halfop(), got_op(), and punish_badguy().
#define HALFOP_CANTDOMODE | ( | _a | ) | (!me_op(chan) && (!me_halfop(chan) || (strchr(NOHALFOPS_MODES, _a) != NULL))) |
Definition at line 43 of file chan.h.
Referenced by check_this_ban(), cmd_dehalfop(), cmd_deop(), cmd_devoice(), cmd_halfop(), cmd_kickban(), cmd_op(), cmd_voice(), enforce_bans(), got_ban(), got_exempt(), got_invite(), and real_add_mode().
#define MASKREC_PERM 2 |
Definition at line 120 of file chan.h.
Referenced by check_expired_bans(), check_expired_exempts(), check_expired_invites(), display_ban(), display_exempt(), display_invite(), share_pls_ban(), share_pls_banchan(), share_pls_exempt(), share_pls_exemptchan(), share_pls_invite(), share_pls_invitechan(), u_addban(), u_addexempt(), u_addinvite(), u_equals_mask(), write_bans(), write_exempts(), and write_invites().
#define MASKREC_STICKY 1 |
Definition at line 119 of file chan.h.
Referenced by display_ban(), display_exempt(), display_invite(), recheck_bans(), recheck_exempts(), recheck_invites(), refresh_invite(), share_pls_ban(), share_pls_banchan(), share_pls_exempt(), share_pls_exemptchan(), share_pls_invite(), share_pls_invitechan(), u_addban(), u_addexempt(), u_addinvite(), u_setsticky_mask(), u_sticky_mask(), write_bans(), write_exempts(), and write_invites().
#define MODES_PER_LINE_MAX 6 |
Definition at line 41 of file chan.h.
Referenced by channels_expmem(), flush_modes(), and remove_channel().
#define NOHALFOPS_MODES "ahoq" |
Definition at line 35 of file chan.h.
Referenced by check_this_member(), gotjoin(), punish_badguy(), and resetmasks().
#define SENTDEHALFOP 0x08000 |
Definition at line 74 of file chan.h.
Referenced by got_dehalfop(), gotnick(), and real_add_mode().
#define SENTDEOP 0x00010 |
Definition at line 63 of file chan.h.
Referenced by got_deop(), gotnick(), and real_add_mode().
#define SENTDEVOICE 0x00080 |
Definition at line 66 of file chan.h.
Referenced by got_deop(), gotmode(), gotnick(), and real_add_mode().
#define SENTHALFOP 0x04000 |
Definition at line 73 of file chan.h.
Referenced by check_this_member(), flush_modes(), got_halfop(), gotjoin(), gotnick(), real_add_mode(), and recheck_channel().
#define SENTKICK 0x00020 |
Definition at line 64 of file chan.h.
Referenced by check_expired_chanstuff(), check_this_member(), cmd_kick(), cmd_kickban(), detect_chan_flood(), got_deop(), gotjoin(), gotmode(), gotmsg(), gotnick(), gotnotice(), kick_all(), punish_badguy(), and recheck_channel().
#define SENTOP 0x00008 |
Definition at line 62 of file chan.h.
Referenced by check_this_member(), flush_modes(), got_deop(), got_op(), gotjoin(), gotnick(), and real_add_mode().
#define SENTVOICE 0x00040 |
Definition at line 65 of file chan.h.
Referenced by check_this_member(), flush_modes(), got_deop(), gotjoin(), gotmode(), gotnick(), and real_add_mode().
#define STOPWHO 0x00200 |
Definition at line 68 of file chan.h.
Referenced by got352or4(), got_dehalfop(), got_deop(), and gotjoin().
#define WASHALFOP 0x10000 |
Definition at line 75 of file chan.h.
Referenced by got352or4(), got_dehalfop(), got_halfop(), and gotjoin().
#define WASOP 0x00100 |
Definition at line 67 of file chan.h.
Referenced by got352or4(), got_deop(), got_op(), and gotjoin().
#define WHO_SYNCED 0x20000 |
Definition at line 76 of file chan.h.
Referenced by got352or4().
typedef struct maskstruct masklist |
typedef struct memstruct memberlist |
struct chanset_t* findchan | ( | const char * | name | ) | [read] |
Definition at line 101 of file chanprog.c.
References chanset_t::name, chanset_t::next, NULL, and rfc_casecmp.
struct chanset_t* findchan_by_dname | ( | const char * | name | ) | [read] |
Definition at line 113 of file chanprog.c.
References chanset_t::dname, chanset_t::next, NULL, and rfc_casecmp.
memberlist* ismember | ( | struct chanset_t * | , | |
char * | ||||
) |
Definition at line 89 of file chanprog.c.
References chanset_t::channel, chan_t::member, memstruct::next, memstruct::nick, NULL, and rfc_casecmp.
00090 { 00091 register memberlist *x; 00092 00093 for (x = chan->channel.member; x && x->nick[0]; x = x->next) 00094 if (!rfc_casecmp(x->nick, nick)) 00095 return x; 00096 return NULL; 00097 }