Anope IRC Services  Version 1.8
Functions
actions.c File Reference
#include "services.h"
Include dependency graph for actions.c:

Go to the source code of this file.

Functions

void bad_password (User *u)
 
void kill_user (char *source, char *user, char *reason)
 
void sqline (char *mask, char *reason)
 
static void _common_unban (ChannelInfo *ci, char *nick, boolean full)
 
void common_unban (ChannelInfo *ci, char *nick)
 
void common_unban_full (ChannelInfo *ci, char *nick, boolean full)
 
void common_svsmode (User *u, char *modes, char *arg)
 
char * common_get_vhost (User *u)
 
char * common_get_vident (User *u)
 

Function Documentation

static void _common_unban ( ChannelInfo ci,
char *  nick,
boolean  full 
)
static

Unban the nick from a channel

Parameters
cichannel info for the channel
nickto remove the ban for
fullTrue to match against realhost
Returns
void

Definition at line 131 of file actions.c.

References anope_cmd_mode(), channel_::bans, BUFSIZE, chaninfo_::c, user_::chost, c_elist::count, do_cmode(), c_elist::entries, entry_match(), finduser(), user_::host, host_resolve(), user_::hostip, ircdcap, c_elist_entry::mask, chaninfo_::name, c_elist_entry::next, user_::nick, snprintf(), sstrdup(), str_is_ip(), ircdcapab_::tsmode, user_::username, user_::vhost, user_::vident, and whosends.

Referenced by common_unban(), and common_unban_full().

void bad_password ( User u)

Note a bad password attempt for the given user. If they've used up their limit, toss them off.

Parameters
uthe User to check
Returns
void

Definition at line 24 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_group(), 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

Parameters
uuser to get the vhost for
Returns
vhost

Definition at line 251 of file actions.c.

References user_::chost, user_::host, ircd, user_::mode, user_::vhost, and ircdvars_::vhostmode.

Referenced by anope_event_encap(), anope_event_metadata(), change_user_username(), create_mask(), do_confirm(), do_group(), do_identify(), do_nick(), do_userlist(), get_ban_data(), 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

Parameters
uuser to get info the vident for
Returns
vident

Definition at line 272 of file actions.c.

References ircd, user_::mode, user_::username, ircdvars_::vhostmode, ircdvars_::vident, and user_::vident.

Referenced by anope_event_encap(), anope_event_metadata(), change_user_username(), create_mask(), do_confirm(), do_group(), do_identify(), do_nick(), do_userlist(), get_ban_data(), 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

Parameters
uuser to apply modes to
modesthe modes to set on the user
argthe arguments for the user modes
Returns
void

Definition at line 228 of file actions.c.

References anope_cmd_svsmode(), and anope_set_umode().

Referenced by anope_event_eob(), anope_event_metadata(), anope_event_uid(), bahamut_cmd_nc_change(), bahamut_cmd_svid_umode3(), bahamut_set_umode(), chan_set_user_status(), delnick(), do_confirm(), do_group(), do_identify(), do_logout(), do_operoline(), do_operumodes(), dreamforge_cmd_nc_change(), dreamforge_cmd_svid_umode2(), dreamforge_set_umode(), hybrid_cmd_nc_change(), hybrid_cmd_svid_umode3(), hybrid_cmd_vhost_off(), hybrid_cmd_vhost_on(), hybrid_set_umode(), inspircd_cmd_nc_change(), inspircd_cmd_svid_umode2(), inspircd_cmd_vhost_off(), 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_cmd_vhost_off(), rageircd_set_umode(), solidircd_cmd_nc_change(), solidircd_cmd_svid_umode3(), solidircd_cmd_vhost_off(), solidircd_set_umode(), ultiamte2_set_umode(), ultimate2_cmd_nc_change(), ultimate2_cmd_svid_umode2(), ultimate3_cmd_nc_change(), ultimate3_cmd_svid_umode3(), ultimate3_cmd_vhost_off(), ultimate3_set_umode(), unreal_cmd_nc_change(), unreal_cmd_svid_umode2(), unreal_cmd_vhost_off(), unreal_set_umode(), viagra_cmd_nc_change(), viagra_cmd_svid_umode3(), viagra_cmd_vhost_off(), and viagra_set_umode().

void common_unban ( ChannelInfo ci,
char *  nick 
)

Definition at line 209 of file actions.c.

References _common_unban().

Referenced by do_fantasy().

void common_unban_full ( ChannelInfo ci,
char *  nick,
boolean  full 
)

Definition at line 214 of file actions.c.

References _common_unban().

Referenced by do_fantasy(), and do_unban().

void kill_user ( char *  source,
char *  user,
char *  reason 
)

Remove a user from the IRC network.

Parameters
sourceis the nick which should generate the kill, or NULL for a server-generated kill.
userto remove
reasonfor the kill
Returns
void

Definition at line 51 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

Parameters
maskof the sqline
reasonfor the sqline
Returns
void

Definition at line 82 of file actions.c.

References anope_cmd_kick(), anope_cmd_sqline(), c, 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().