/[cvs]/eggdrop1.4/src/chan.h
ViewVC logotype

Diff of /eggdrop1.4/src/chan.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6 by poptix, Wed Sep 15 07:26:28 1999 UTC revision 1.7 by poptix, Wed Sep 15 07:40:32 1999 UTC
# Line 48  typedef struct memstruct { Line 48  typedef struct memstruct {
48  #define chan_issplit(x) (x->split > 0)  #define chan_issplit(x) (x->split > 0)
49  #define chan_wasop(x) (x->flags & WASOP)  #define chan_wasop(x) (x->flags & WASOP)
50    
51  typedef struct banstruct {  /*        Why duplicate this struct for exempts and invites only under another
52    char *ban;   *      name? <cybah>
53     */
54    typedef struct maskstruct {
55      char *mask;
56    char *who;    char *who;
57    time_t timer;    time_t timer;
58    struct banstruct *next;    struct maskstruct *next;
59  } banlist;  } masklist;
60    
61  /* Next 2 structures created for IRCnet server module - Daemus - 2/1/1999 */  /* used for temporary bans, exempts and invites */
62  typedef struct exbanstruct {  typedef struct maskrec {
63    char *exempt;    struct maskrec *next;
64    char *who;    char *mask,
65    time_t timer;         *desc,
66    struct exbanstruct *next;         *user;
67  } exemptlist;    time_t expire,
68             added,
69             lastactive;
70      int flags;
71    } maskrec;
72    extern maskrec *global_bans, *global_exempts, *global_invites;
73    
74  typedef struct exinvitestruct {  #define MASKREC_STICKY 1
75    char *invite;  #define MASKREC_PERM   2
   char *who;  
   time_t timer;  
   struct exinvitestruct *next;  
 } invitelist;  
76    
77  /* for every channel i join */  /* for every channel i join */
78  struct chan_t {  struct chan_t {
79    memberlist *member;    memberlist *member;
80    banlist *ban;    masklist *ban;
81    exemptlist *exempt;    masklist *exempt;
82    invitelist *invite;    masklist *invite;
83    char *topic;    char *topic;
84    char *key;    char *key;
85    unsigned short int mode;    unsigned short int mode;
# Line 117  struct chanset_t { Line 121  struct chanset_t {
121    int status;    int status;
122    int ircnet_status;    int ircnet_status;
123    int idle_kick;    int idle_kick;
124    struct banrec *bans;      /* temporary channel bans */    /* temporary channel bans, exempts and invites */
125    struct exemptrec *exempts; /* temporary channel exempts */    maskrec *bans,
126    struct inviterec *invites; /* temporary channel invites */            *exempts,
127              *invites;
128    /* desired channel modes: */    /* desired channel modes: */
129    int mode_pls_prot;        /* modes to enforce */    int mode_pls_prot;        /* modes to enforce */
130    int mode_mns_prot;        /* modes to reject */    int mode_mns_prot;        /* modes to reject */

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23