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/trunk/include/channel.h (file contents):
Revision 3937 by michael, Tue Jun 10 19:01:12 2014 UTC vs.
Revision 4785 by michael, Sat Oct 25 16:13:48 2014 UTC

# Line 15 | Line 15
15   *
16   *  You should have received a copy of the GNU General Public License
17   *  along with this program; if not, write to the Free Software
18 < *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
18 > *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19   *  USA
20   */
21  
# Line 52 | Line 52 | struct Client;
52   /*! \brief Mode structure for channels */
53   struct Mode
54   {
55 <  unsigned int mode;   /*!< simple modes */
56 <  unsigned int limit;  /*!< +l userlimit */
57 <  char key[KEYLEN + 1];    /*!< +k key */
55 >  unsigned int mode;   /**< simple modes */
56 >  unsigned int limit;  /**< +l userlimit */
57 >  char key[KEYLEN + 1];    /**< +k key */
58   };
59  
60   /*! \brief Channel structure */
# Line 70 | Line 70 | struct Channel
70  
71    time_t channelts;
72    time_t topic_time;
73 <  time_t last_knock; /*!< don't allow knock to flood */
73 >  time_t last_knock;  /**< Don't allow knock to flood */
74    time_t last_join_time;
75  time_t last_invite; /*!< don't allow INVITE to flood */
75    time_t first_received_message_time; /*!< channel flood control */
76    unsigned int flags;
77    int received_number_of_privmsgs;
78  
79 +  dlink_list locmembers;  /*!< local members are here too */
80    dlink_list members;
81    dlink_list invites;
82    dlink_list banlist;
# Line 85 | Line 85 | struct Channel
85  
86    float number_joined;
87  
88 <  char chname[CHANNELLEN + 1];
88 >  char name[CHANNELLEN + 1];
89   };
90  
91   /*! \brief Membership structure */
92   struct Membership
93   {
94 <  dlink_node channode;     /*!< link to chptr->members    */
95 <  dlink_node usernode;     /*!< link to source_p->channel */
96 <  struct Channel *chptr;   /*!< Channel pointer */
97 <  struct Client *client_p; /*!< Client pointer */
98 <  unsigned int flags;      /*!< user/channel flags, e.g. CHFL_CHANOP */
94 >  dlink_node locchannode;  /**< link to chptr->locmembers */
95 >  dlink_node channode;     /**< link to chptr->members    */
96 >  dlink_node usernode;     /**< link to source_p->channel */
97 >  struct Channel *chptr;   /**< Channel pointer */
98 >  struct Client *client_p; /**< Client pointer */
99 >  unsigned int flags;      /**< user/channel flags, e.g. CHFL_CHANOP */
100   };
101  
102 < /*! \brief Ban structure.  Used for b/e/I n!u\@h masks */
102 > /*! \brief Ban structure. Used for b/e/I n!u\@h masks */
103   struct Ban
104   {
105    dlink_node node;
# Line 113 | Line 114 | struct Ban
114    int type;
115   };
116  
117 < extern dlink_list global_channel_list;
117 > extern dlink_list channel_list;
118 > extern struct event splitmode_event;
119  
120   extern int check_channel_name(const char *, const int);
121   extern int can_send(struct Channel *, struct Client *, struct Membership *, const char *);
122   extern int is_banned(const struct Channel *, const struct Client *);
123 < extern int can_join(struct Client *, struct Channel *, const char *);
123 > extern int can_join(struct Client *, const struct Channel *, const char *);
124   extern int has_member_flags(const struct Membership *, const unsigned int);
125  
126   extern void channel_do_join(struct Client *, char *, char *);
127   extern void channel_do_join_0(struct Client *);
128 < extern void channel_do_part(struct Client *, char *, char *);
128 > extern void channel_do_part(struct Client *, char *, const char *);
129   extern void remove_ban(struct Ban *, dlink_list *);
130   extern void channel_init(void);
131 < extern void add_user_to_channel(struct Channel *, struct Client *,
130 <                                unsigned int, int);
131 > extern void add_user_to_channel(struct Channel *, struct Client *, unsigned int, int);
132   extern void remove_user_from_channel(struct Membership *);
133   extern void channel_member_names(struct Client *, struct Channel *, int);
134   extern void add_invite(struct Channel *, struct Client *);
# Line 138 | Line 139 | extern void check_spambot_warning(struct
139   extern void check_splitmode(void *);
140   extern void free_channel_list(dlink_list *);
141   extern void destroy_channel(struct Channel *);
142 < extern void set_channel_topic(struct Channel *, const char *, const char *, time_t, int);
142 > extern void channel_set_topic(struct Channel *, const char *, const char *, time_t, int);
143  
144   extern const char *get_member_status(const struct Membership *, const int);
145  
146   extern struct Channel *make_channel(const char *);
147   extern struct Membership *find_channel_link(struct Client *, struct Channel *);
148 < #endif  /* INCLUDED_channel_h */
148 > #endif

Diff Legend

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