src/chan.h File Reference

This graph shows which files directly or indirectly include this file:

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

memberlistismember (struct chanset_t *, char *)
struct chanset_tfindchan (const char *name)
struct chanset_tfindchan_by_dname (const char *name)

Variables

maskrecglobal_bans
maskrecglobal_exempts
maskrecglobal_invites

Define Documentation

#define CHAN_ACTIVE   0x200000
#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->flags & FAKEHALFOP)

Definition at line 82 of file chan.h.

Referenced by gotmode().

#define chan_fakeop (  )     (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->flags & CHANHALFOP)
#define chan_hasop (  )     (x->flags & CHANOP)
#define chan_hasvoice (  )     (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->split > 0)
#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
#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->flags & SENTDEHALFOP)

Definition at line 86 of file chan.h.

Referenced by gotnick(), and real_add_mode().

#define chan_sentdeop (  )     (x->flags & SENTDEOP)

Definition at line 84 of file chan.h.

Referenced by cmd_channel(), gotnick(), and real_add_mode().

#define chan_sentdevoice (  )     (x->flags & SENTDEVOICE)

Definition at line 89 of file chan.h.

Referenced by gotnick(), and real_add_mode().

#define chan_senthalfop (  )     (x->flags & SENTHALFOP)

Definition at line 85 of file chan.h.

Referenced by flush_modes(), gotnick(), and real_add_mode().

#define chan_sentkick (  )     (x->flags & SENTKICK)
#define chan_sentop (  )     (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->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

Definition at line 244 of file chan.h.

Referenced by got315(), and gotjoin().

#define chan_stopcheck (  )     (x->flags & STOPCHECK)

Definition at line 93 of file chan.h.

Referenced by gotnick().

#define chan_washalfop (  )     (x->flags & WASHALFOP)

Definition at line 92 of file chan.h.

Referenced by got_halfop().

#define chan_wasop (  )     (x->flags & WASOP)

Definition at line 91 of file chan.h.

Referenced by got_op().

#define CHAN_WHINED   0x1000000

Definition at line 237 of file chan.h.

Referenced by check_lonely_channel().

#define chan_whosynced (  )     (x->flags & WHO_SYNCED)

Definition at line 94 of file chan.h.

Referenced by sync_members().

#define CHANANON   0x0100
#define CHANDELJN   0x8000
#define CHANHALFOP   0x01000

Definition at line 71 of file chan.h.

Referenced by got352or4(), got_dehalfop(), got_deop(), and got_halfop().

#define CHANINV   0x0001
#define CHANINVIS   0x40000

Definition at line 153 of file chan.h.

Referenced by getchanmode(), got324(), and gotmode().

#define CHANKEY   0x0080
#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
#define CHANMETA   "#&!+"
#define CHANMODER   0x0008
#define CHANMODREG   0x1000
#define channel_active ( chan   )     (chan->status & CHAN_ACTIVE)
#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)
#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)
#define channel_dynamicbans ( chan   )     (chan->status & CHAN_DYNAMICBANS)
#define channel_dynamicexempts ( chan   )     (chan->ircnet_status & CHAN_DYNAMICEXEMPTS)
#define channel_dynamicinvites ( chan   )     (chan->ircnet_status & CHAN_DYNAMICINVITES)
#define channel_enforcebans ( chan   )     (chan->status & CHAN_ENFORCEBANS)
#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)
#define channel_juped ( chan   )     (chan->status & CHAN_JUPED)

Definition at line 291 of file chan.h.

Referenced by got437().

#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)
#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)
#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
#define CHANNOCLR   0x0400
#define CHANNOCTCP   0x2000
#define CHANNOMSG   0x0020
#define CHANNONOTC   0x20000
#define CHANOP   0x00001

Definition at line 59 of file chan.h.

Referenced by cmd_kickban(), got352or4(), got_deop(), and got_op().

#define CHANPRIV   0x0002
#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
#define CHANSEC   0x0004
#define CHANSTRIP   0x10000
#define CHANTOPIC   0x0010
#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)))
#define MASKREC_PERM   2
#define MASKREC_STICKY   1
#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
#define SENTKICK   0x00020
#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 STOPCHECK   0x00800

Definition at line 70 of file chan.h.

Referenced by gotnick().

#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 Documentation

typedef struct maskstruct masklist
typedef struct memstruct memberlist

Function Documentation

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.

00102 {
00103   register struct chanset_t *chan;
00104 
00105   for (chan = chanset; chan; chan = chan->next)
00106     if (!rfc_casecmp(chan->name, name))
00107       return chan;
00108   return NULL;
00109 }

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.

00114 {
00115   register struct chanset_t *chan;
00116 
00117   for (chan = chanset; chan; chan = chan->next)
00118     if (!rfc_casecmp(chan->dname, name))
00119       return chan;
00120   return NULL;
00121 }

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 }


Variable Documentation


Generated on 7 Sep 2016 for Eggdrop by  doxygen 1.6.1