ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/channel.h
(Generate patch)

Comparing:
ircd-hybrid/include/channel.h (file contents), Revision 33 by knight, Sun Oct 2 20:50:00 2005 UTC vs.
ircd-hybrid-7.3/include/channel.h (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# Line 28 | Line 28
28   #define INCLUDED_channel_h
29  
30   #include "ircd_defs.h"        /* KEYLEN, CHANNELLEN */
31 #include "tools.h"
31  
32   struct Client;
33  
# Line 46 | Line 45 | struct Channel
45    dlink_node node;
46  
47    struct Channel *hnextch;
49
48    struct Mode mode;
49 +
50    char *topic;
51    char *topic_info;
52 +
53 +  time_t channelts;
54    time_t topic_time;
54  unsigned long lazyLinkChannelExists;
55    time_t last_knock; /*!< don't allow knock to flood */
56 +  time_t last_join_time;
57 +  time_t first_received_message_time; /*!< channel flood control */
58 +  unsigned int flags;
59 +  int received_number_of_privmsgs;
60  
61    dlink_list members;
58  dlink_list locmembers;  /*!< local members are here too */
62    dlink_list invites;
63    dlink_list banlist;
64    dlink_list exceptlist;
65    dlink_list invexlist;
66  
64  time_t first_received_message_time; /*!< channel flood control */
65  int received_number_of_privmsgs;
66  int flags;
67    float number_joined;
68  time_t last_join_time;
68  
70  time_t channelts;
69    char chname[CHANNELLEN + 1];
70   };
71  
# Line 75 | Line 73 | struct Channel
73   struct Membership
74   {
75    dlink_node channode;     /*!< link to chptr->members    */
78  dlink_node locchannode;  /*!< link to chptr->locmembers */
76    dlink_node usernode;     /*!< link to source_p->channel */
77    struct Channel *chptr;   /*!< Channel pointer */
78    struct Client *client_p; /*!< Client pointer */
# Line 86 | Line 83 | struct Membership
83   struct Ban
84   {
85    dlink_node node;
89  size_t len;
86    char *name;
87    char *username;
88    char *host;
89    char *who;
90 +  size_t len;
91    time_t when;
92 +  struct irc_ssaddr addr;
93 +  int bits;
94 +  char type;
95   };
96  
97   extern dlink_list global_channel_list;
98  
99 < extern int check_channel_name(const char *);
100 < extern int can_send(struct Channel *, struct Client *);
101 < extern int can_send_part(struct Membership *, struct Channel *, struct Client *);
102 < extern int is_banned(struct Channel *, struct Client *);
99 > extern int check_channel_name(const char *, int);
100 > extern int can_send(struct Channel *, struct Client *, struct Membership *);
101 > extern int is_banned(const struct Channel *, const struct Client *);
102   extern int can_join(struct Client *, struct Channel *, const char *);
103   extern int has_member_flags(struct Membership *, unsigned int);
104  
# Line 122 | Line 121 | extern void set_channel_topic(struct Cha
121  
122   extern const char *get_member_status(const struct Membership *, int);
123  
124 < extern struct Channel *get_or_create_channel(struct Client *, const char *, int *);
124 > extern struct Channel *make_channel(const char *);
125   extern struct Membership *find_channel_link(struct Client *, struct Channel *);
126  
127   /* channel visible */

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)