#include "stdinc.h"#include "server.h"Go to the source code of this file.
Functions | |
| User * | AddUser (char *nick, char *user, char *host, char *realname, char *server, char *modes, char *uid, char *vhost, char *ip) |
| User * | new_user (char *nick) |
| User * | find_user (char *user) |
| User * | find_uid (char *uid) |
| void | exit_user (char *user) |
| void | exit_one_user (User *u, char *message) |
| void | exit_local_users (char *message) |
| void | exit_remote_users (void) |
| void | burst_local_users (int argc, char **argv) |
| void | introduce_users (void) |
| void | NewNick (User *u, char *nick) |
| char * | create_usermode_string (User *u) |
| void | read_usermode_string (User *u, char *umodes) |
| User * | NewClient (char *nick, char *ident, char *host, char *name) |
| int | DelClient (char *client) |
| User * | isOurClient (char *client) |
Variables | |
| int | usercnt |
| int | maxusers |
| char * | ircd_umodes [128] |
| User* AddUser | ( | char * | nick, | |
| char * | user, | |||
| char * | host, | |||
| char * | realname, | |||
| char * | server, | |||
| char * | modes, | |||
| char * | uid, | |||
| char * | vhost, | |||
| char * | ip | |||
| ) |
Definition at line 41 of file user.c.
References alog(), Event(), exit_user(), find_serv(), IRCd, LOG_USER, logclients, maxusers, Link::name, new_user(), IRCDProto::p10, read_usermode_string(), s_assert, sendto_logchan(), setAccess(), strlcpy(), IRCDProto::ts6, usercnt, and valid_hostname().
| void burst_local_users | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 370 of file user.c.
References DLINK_FOREACH, ircd_join(), MyConnect, and userlist.
Referenced by Run().
| char* create_usermode_string | ( | User * | u | ) |
Definition at line 466 of file user.c.
References ircd_umodes, and strlcat().
| int DelClient | ( | char * | client | ) |
Definition at line 663 of file user.c.
References exit_one_user(), and find_user().
Referenced by Module_Close().
| void exit_local_users | ( | char * | message | ) |
Definition at line 336 of file user.c.
References DLINK_FOREACH_SAFE, exit_one_user(), MyConnect, and userlist.
Referenced by uplink_cleanup().
| void exit_one_user | ( | User * | u, | |
| char * | message | |||
| ) |
Definition at line 292 of file user.c.
References alog(), DelFromChannel(), dlink_find_delete(), DLINK_FOREACH_SAFE, dlink_free(), Event(), IRCd, LOG_USER, logclients, MyConnect, send_line(), sendto_logchan(), IRCDProto::ts6, usercnt, and userlist.
Referenced by DelClient(), exit_local_users(), exit_remote_users(), and exit_serv().
| void exit_remote_users | ( | void | ) |
Definition at line 353 of file user.c.
References DLINK_FOREACH_SAFE, exit_one_user(), MyConnect, and userlist.
Referenced by uplink_cleanup().
| void exit_user | ( | char * | user | ) |
exit_user() - Removes a user from the list
| user | - The nick of the user to remove |
Definition at line 245 of file user.c.
References alog(), DelFromChannel(), dlink_find_delete(), DLINK_FOREACH_SAFE, dlink_free(), find_user(), IRCd, LOG_USER, logclients, MyConnect, send_line(), sendto_logchan(), IRCDProto::ts6, usercnt, and userlist.
Referenced by AddUser().
| User* find_uid | ( | char * | uid | ) |
Definition at line 215 of file user.c.
References alog(), DLINK_FOREACH, HasId, LOG_DEBUG3, and userlist.
Referenced by parse().
| User* find_user | ( | char * | user | ) |
find_user
Definition at line 187 of file user.c.
References alog(), DLINK_FOREACH, HasId, LOG_DEBUG3, and userlist.
Referenced by AddToChannel(), DelClient(), exit_user(), HandleClientCmds(), isOurClient(), new_user(), NewNick(), parse(), and sendto_socket().
| void introduce_users | ( | void | ) |
introduce_users() - Configures our client structures
Definition at line 402 of file user.c.
References DLINK_FOREACH, ircd_add_user(), MyConnect, and userlist.
Referenced by Run().
| User* isOurClient | ( | char * | client | ) |
isOurClient() - Determines wether or not a client is on our server
| client | - The client to check for |
Definition at line 686 of file user.c.
References CfgSettings, find_user(), and Conf::servername.
| User* new_user | ( | char * | nick | ) |
Definition at line 120 of file user.c.
References dlink_add_tail(), dlink_create(), find_user(), strlcpy(), and userlist.
Referenced by AddUser(), and NewClient().
| User* NewClient | ( | char * | nick, | |
| char * | ident, | |||
| char * | host, | |||
| char * | name | |||
| ) |
Definition at line 618 of file user.c.
References BURSTING, CfgSettings, find_serv(), generate_p10_uid(), generate_uid(), IRCd, ircd_add_user(), new_user(), IRCDProto::p10, Conf::servername, strlcpy(), sync_state, and IRCDProto::ts6.
Referenced by foo_init().
| void NewNick | ( | User * | u, | |
| char * | nick | |||
| ) |
Definition at line 422 of file user.c.
References alog(), find_user(), LOG_USER, lognicks, sendto_logchan(), and strlcpy().
| void read_usermode_string | ( | User * | u, | |
| char * | umodes | |||
| ) |
Definition at line 500 of file user.c.
References ircd_umodes, s_assert, sendto_logchan(), and setAccess().
Referenced by AddUser().
| char* ircd_umodes[128] |
{
NULL
}
Definition at line 34 of file user.c.
Referenced by create_usermode_string(), and read_usermode_string().
| int usercnt |
Definition at line 31 of file user.c.
Referenced by AddUser(), exit_one_user(), and exit_user().
1.6.3