~ubuntu-branches/debian/sid/ircd-hybrid/sid

« back to all changes in this revision

Viewing changes to include/channel.h

  • Committer: Package Import Robot
  • Author(s): Dominic Hargreaves
  • Date: 2015-04-19 15:53:09 UTC
  • mfrom: (1.2.13)
  • Revision ID: package-import@ubuntu.com-20150419155309-06y59x2at2ax5ou3
Tags: 1:8.2.7+dfsg.1-1
* Remove Suggests: hybserv since it doesn't really work with
  ircd-hybrid 8 and above
* New upstream release
  - update debian/copyright with minor changes
  - update config files from new reference.conf
  - fixes DoS from localhost clients (Closes: #782859)
  - supports SSL certficate chaining (Closes: #769741)
* Debconf configuration script no longer ignores the result of
  upgrade questions (Closes: #779082)
* Don't display upgrade warnings on new installs (Closes: #782883)
* Add NEWS item about updated configuration

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3
3
 *
4
 
 *  Copyright (c) 1997-2014 ircd-hybrid development team
 
4
 *  Copyright (c) 1997-2015 ircd-hybrid development team
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
21
21
 
22
22
/*! \file channel.h
23
23
 * \brief Responsible for managing channels, members, bans and topics
24
 
 * \version $Id: channel.h 4564 2014-08-24 10:24:47Z michael $
 
24
 * \version $Id: channel.h 5758 2015-04-02 18:26:29Z michael $
25
25
 */
26
26
 
27
27
#ifndef INCLUDED_channel_h
68
68
  char topic[TOPICLEN + 1];
69
69
  char topic_info[USERHOST_REPLYLEN];
70
70
 
71
 
  time_t channelts;
 
71
  time_t creationtime;
72
72
  time_t topic_time;
73
73
  time_t last_knock;  /**< Don't allow knock to flood */
74
74
  time_t last_join_time;
85
85
 
86
86
  float number_joined;
87
87
 
88
 
  char chname[CHANNELLEN + 1];
 
88
  char name[CHANNELLEN + 1];
89
89
};
90
90
 
91
91
/*! \brief Membership structure */
103
103
struct Ban
104
104
{
105
105
  dlink_node node;
106
 
  char *name;
107
 
  char *user;
108
 
  char *host;
109
 
  char *who;
 
106
  char name[NICKLEN + 1];
 
107
  char user[USERLEN + 1];
 
108
  char host[HOSTLEN + 1];
 
109
  char who[NICKLEN + USERLEN + HOSTLEN + 3];
110
110
  size_t len;
111
111
  time_t when;
112
112
  struct irc_ssaddr addr;
120
120
extern int check_channel_name(const char *, const int);
121
121
extern int can_send(struct Channel *, struct Client *, struct Membership *, const char *);
122
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
124
extern int has_member_flags(const struct Membership *, const unsigned int);
125
125
 
126
126
extern void channel_do_join(struct Client *, char *, char *);
127
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
129
extern void remove_ban(struct Ban *, dlink_list *);
130
130
extern void channel_init(void);
131
131
extern void add_user_to_channel(struct Channel *, struct Client *, unsigned int, int);
133
133
extern void channel_member_names(struct Client *, struct Channel *, int);
134
134
extern void add_invite(struct Channel *, struct Client *);
135
135
extern void del_invite(struct Channel *, struct Client *);
 
136
extern void clear_invites(struct Channel *);
136
137
extern void send_channel_modes(struct Client *, struct Channel *);
137
138
extern void channel_modes(struct Channel *, struct Client *, char *, char *);
138
139
extern void check_spambot_warning(struct Client *, const char *);