ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/include/s_user.h
Revision: 101
Committed: Mon Oct 10 03:52:14 2005 UTC (20 years, 10 months ago) by db
Content type: text/x-chdr
File size: 2667 byte(s)
Log Message:
- First pass at s_conf.c cleanup for attach clients
- attach_conf() is gone replaced with attach_iline()
  Clients/servers have one single I line "attached", i.e. the confs
  list is gone.
- Add attach_leaf_hub()
  Add a leaf or hub mask to the given server, ->serv must exist
  since there can be a list of hub masks and leaf masks, this continues
  to be a dlink list
- Removed redundant find_conf_exact()
  This function can be replaced in all cases with find_exact_name_conf()
  notably because all find_conf_exact did differently was count whether
  an oper conf would cause an already connected client to exceed class limits.
- oper_up() now takes an extra conf pointer pointing to the found
  oper conf, the oper flags are set in the client->iline as necessary
  in oper_up()
- Cleaned up more prototypes that should have been moved from s_conf.h
  to parse_aline.h notably. find_kill() and find_gkill()
- m_stats.c needs more cleanup since memory in attached "confs" is now
  not counted. This should be replaced with iline memory count and
  hub/leaf confs memory count.
  

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * s_user.h: A header for the user functions.
4     *
5     * Copyright (C) 2002 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_s_user_h
26     #define INCLUDED_s_user_h
27    
28     #define IRC_MAXSID 3
29     #define IRC_MAXUID 6
30     #define TOTALSIDUID (IRC_MAXSID + IRC_MAXUID)
31    
32     struct Client;
33     struct AccessItem;
34    
35     extern int MaxClientCount; /* GLOBAL - highest number of clients */
36     extern int MaxConnectionCount; /* GLOBAL - highest number of connections */
37     extern struct Callback *entering_umode_cb;
38     extern struct Callback *umode_cb;
39     extern struct Callback *uid_get_cb;
40     extern unsigned int user_modes[];
41    
42     extern void assemble_umode_buffer(void);
43     extern void set_user_mode(struct Client *, struct Client *, int, char **);
44     extern void send_umode(struct Client *, struct Client *,
45     unsigned int, unsigned int, char *);
46     extern void send_umode_out(struct Client *, struct Client *, unsigned int);
47     extern void show_lusers(struct Client *);
48     extern void show_isupport(struct Client *);
49 db 101 extern void oper_up(struct Client *, struct ConfItem *);
50 adx 30
51     extern void register_local_user(struct Client *, struct Client *,
52     const char *, const char *);
53     extern void register_remote_user(struct Client *, struct Client *,
54     const char *, const char *,
55     const char *, const char *);
56     extern void do_local_user(const char *, struct Client *, struct Client *,
57     const char *, const char *, const char *,
58     const char *);
59     extern void init_uid(void);
60     extern int valid_hostname(const char *);
61     extern int valid_username(const char *);
62     extern void add_isupport(const char *, const char *, int);
63     extern void delete_isupport(const char *);
64     extern void init_isupport(void);
65     extern void rebuild_isupport_message_line(void);
66    
67     #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision