#include "services.h"
Go to the source code of this file.
Functions | |
| void | bad_password (User *u) |
| char * | common_get_vhost (User *u) |
| char * | common_get_vident (User *u) |
| void | common_svsmode (User *u, char *modes, char *arg) |
| void | common_unban (ChannelInfo *ci, char *nick) |
| void | kill_user (char *source, char *user, char *reason) |
| void | sqline (char *mask, char *reason) |
| void bad_password | ( | User * | u | ) |
Note a bad password attempt for the given user. If they've used up their limit, toss them off.
| u | the User to check |
Definition at line 25 of file actions.c.
References BadPassLimit, BadPassTimeout, user_::invalid_pw_count, user_::invalid_pw_time, kill_user(), and user_::nick.
Referenced by do_ghost(), do_identify(), do_recover(), and do_release().
| char* common_get_vhost | ( | User * | u | ) |
Get the vhost for the user, if set else return the host, on ircds without vhost this returns the host
| u | user to get the vhost for |
Definition at line 233 of file actions.c.
References user_::host, ircd, user_::mode, ircdvars_::vhost, user_::vhost, and ircdvars_::vhostmode.
Referenced by change_user_username(), create_mask(), do_confirm(), do_nick(), do_userlist(), get_idealban(), set_lastmask(), update_host(), and validate_user().
| char* common_get_vident | ( | User * | u | ) |
Get the vident for the user, if set else return the ident, on ircds without vident this returns the ident
| u | user to get info the vident for |
Definition at line 254 of file actions.c.
References ircd, user_::mode, user_::username, ircdvars_::vhostmode, ircdvars_::vident, and user_::vident.
Referenced by change_user_username(), create_mask(), do_confirm(), do_nick(), do_userlist(), get_idealban(), set_lastmask(), update_host(), and validate_user().
| void common_svsmode | ( | User * | u, | |
| char * | modes, | |||
| char * | arg | |||
| ) |
Prepare to set SVSMODE and update internal user modes
| u | user to apply modes to | |
| modes | the modes to set on the user | |
| arg | the arguments for the user modes |
Definition at line 210 of file actions.c.
References anope_cmd_svsmode(), and anope_set_umode().
Referenced by bahamut_cmd_nc_change(), bahamut_cmd_svid_umode3(), bahamut_set_umode(), chan_set_user_status(), delnick(), do_confirm(), do_operoline(), do_operumodes(), dreamforge_cmd_nc_change(), dreamforge_cmd_svid_umode2(), dreamforge_set_umode(), inspircd_cmd_nc_change(), inspircd_cmd_svid_umode2(), inspircd_set_umode(), plexus_cmd_nc_change(), plexus_cmd_svid_umode2(), plexus_cmd_svid_umode3(), plexus_cmd_vhost_off(), plexus_cmd_vhost_on(), plexus_set_umode(), ptlink_cmd_svid_umode2(), ptlink_set_umode(), rageircd_cmd_nc_change(), rageircd_cmd_svid_umode3(), rageircd_set_umode(), solidircd_cmd_nc_change(), solidircd_cmd_svid_umode3(), solidircd_set_umode(), ultiamte2_set_umode(), ultimate2_cmd_nc_change(), ultimate2_cmd_svid_umode2(), ultimate3_cmd_nc_change(), ultimate3_cmd_svid_umode3(), ultimate3_set_umode(), unreal_cmd_nc_change(), unreal_cmd_svid_umode2(), unreal_set_umode(), viagra_cmd_nc_change(), viagra_cmd_svid_umode3(), and viagra_set_umode().
| void common_unban | ( | ChannelInfo * | ci, | |
| char * | nick | |||
| ) |
Unban the nick from a channel
| ci | channel info for the channel | |
| nick | to remove the ban for |
Definition at line 131 of file actions.c.
References anope_cmd_mode(), anope_cmd_unban(), channel_::bancount, channel_::bans, chaninfo_::c, do_cmode(), finduser(), user_::host, host_resolve(), user_::hostip, ircd, match_userip(), match_usermask(), chaninfo_::name, scalloc(), sstrdup(), ircdvars_::svsmode_unban, and whosends.
Referenced by do_unban().
| void kill_user | ( | char * | source, | |
| char * | user, | |||
| char * | reason | |||
| ) |
Remove a user from the IRC network.
| source | is the nick which should generate the kill, or NULL for a server-generated kill. | |
| user | to remove | |
| reason | for the kill |
Definition at line 52 of file actions.c.
References anope_cmd_svskill(), BUFSIZE, do_kill(), finduser(), ircd, ircdvars_::quitonkill, ServerName, and snprintf().
Referenced by add_session(), add_sgline(), add_sqline(), bad_password(), check_akill(), check_sqline(), collide(), do_ghost(), do_noop(), and EnforceQlinedNick().
| void sqline | ( | char * | mask, | |
| char * | reason | |||
| ) |
Check and enforce SQlines
| mask | of the sqline | |
| reason | for the sqline |
Definition at line 83 of file actions.c.
References anope_cmd_kick(), anope_cmd_sqline(), chanlist, ircdvars_::chansqline, do_kick(), ircd, is_oper(), match_wild_nocase(), channel_::name, channel_::next, s_ChanServ, s_OperServ, and channel_::users.
Referenced by add_sqline(), check_chan_sqline(), and check_sqline().
1.5.1-20070107