Go to the source code of this file.
Data Structures | |
| struct | User |
| struct | guardian |
Defines | |
| #define | HasId(x) ((x->uid[0] != '\0')? 1 : 0) |
| #define | MyConnect(x) ((x->myconnect == 1)? 1 : 0) |
Typedefs | |
| typedef void | help_cmd (User *) |
Functions | |
| User * | AddUser (char *, char *, char *, char *, char *, char *, char *, char *, char *) |
| User * | find_user (char *) |
| User * | find_uid (char *) |
| User * | new_user (char *) |
| int | AddUserIp (User *, char *, int) |
| void | exit_user (char *) |
| void | exit_one_user (User *, char *) |
| void | exit_local_users (char *) |
| void | exit_remote_users (void) |
| void | burst_local_users (int, char **) |
| void | introduce_users (void) |
| User * | NewClient (char *, char *, char *, char *) |
| int | DelClient (char *) |
| void | NewNick (User *, char *) |
| User * | isOurClient (char *) |
| int | CheckIgnore (User *) |
| char * | create_usermode_string (User *) |
| void | read_usermode_string (User *, char *) |
Variables | |
| dlink_list | userlist |
| struct guardian | guardian |
| User * | s_Guardian |
| User * | s_Scanner |
| int | logclients |
| int | lognicks |
| char * | Guardian |
| #define HasId | ( | x | ) | ((x->uid[0] != '\0')? 1 : 0) |
Definition at line 4 of file src/user.h.
| #define MyConnect | ( | x | ) | ((x->myconnect == 1)? 1 : 0) |
Definition at line 5 of file src/user.h.
| typedef void help_cmd(User *) |
Definition at line 10 of file src/user.h.
| User* AddUser | ( | char * | , | |
| char * | , | |||
| char * | , | |||
| char * | , | |||
| char * | , | |||
| char * | , | |||
| char * | , | |||
| char * | , | |||
| char * | ||||
| ) |
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().
| int AddUserIp | ( | User * | , | |
| char * | , | |||
| int | ||||
| ) |
| void burst_local_users | ( | int | , | |
| char ** | ||||
| ) |
Definition at line 370 of file user.c.
References DLINK_FOREACH, ircd_join(), MyConnect, and userlist.
| int CheckIgnore | ( | User * | ) |
| char* create_usermode_string | ( | User * | ) |
Definition at line 466 of file user.c.
References ircd_umodes, and strlcat().
| int DelClient | ( | char * | ) |
Definition at line 663 of file user.c.
References exit_one_user(), and find_user().
| void exit_local_users | ( | char * | ) |
Definition at line 336 of file user.c.
References DLINK_FOREACH_SAFE, exit_one_user(), MyConnect, and userlist.
| void exit_one_user | ( | User * | , | |
| char * | ||||
| ) |
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.
| void exit_remote_users | ( | void | ) |
Definition at line 353 of file user.c.
References DLINK_FOREACH_SAFE, exit_one_user(), MyConnect, and userlist.
| 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.
| User* find_uid | ( | char * | ) |
Definition at line 215 of file user.c.
References alog(), DLINK_FOREACH, HasId, LOG_DEBUG3, and userlist.
| User* find_user | ( | char * | user | ) |
find_user
Definition at line 187 of file user.c.
References alog(), DLINK_FOREACH, HasId, LOG_DEBUG3, and userlist.
| 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.
| 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 * | ) |
Definition at line 120 of file user.c.
References dlink_add_tail(), dlink_create(), find_user(), strlcpy(), and userlist.
| User* NewClient | ( | char * | , | |
| char * | , | |||
| char * | , | |||
| char * | ||||
| ) |
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.
| void NewNick | ( | User * | , | |
| char * | ||||
| ) |
Definition at line 422 of file user.c.
References alog(), find_user(), LOG_USER, lognicks, sendto_logchan(), and strlcpy().
| void read_usermode_string | ( | User * | , | |
| char * | ||||
| ) |
Definition at line 500 of file user.c.
References ircd_umodes, s_assert, sendto_logchan(), and setAccess().
| char* Guardian |
Definition at line 106 of file src/user.h.
| int logclients |
Definition at line 103 of file src/user.h.
| int lognicks |
Definition at line 104 of file src/user.h.
| User* s_Guardian |
Definition at line 100 of file src/user.h.
| User* s_Scanner |
Definition at line 101 of file src/user.h.
| dlink_list userlist |
Definition at line 7 of file src/user.h.
1.6.3