inspircd10.c File Reference

#include "services.h"
#include "pseudo.h"
#include "inspircd10.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

Go to the source code of this file.

Functions

int anope_event_436 (char *source, int ac, char **av)
int anope_event_admin (char *source, int ac, char **av)
int anope_event_away (char *source, int ac, char **av)
int anope_event_chghost (char *source, int ac, char **av)
int anope_event_chgident (char *source, int ac, char **av)
int anope_event_chgname (char *source, int ac, char **av)
int anope_event_credits (char *source, int ac, char **av)
int anope_event_fjoin (char *source, int ac, char **av)
int anope_event_fmode (char *source, int ac, char **av)
int anope_event_ftopic (char *source, int ac, char **av)
int anope_event_idle (char *source, int ac, char **av)
int anope_event_join (char *source, int ac, char **av)
int anope_event_kick (char *source, int ac, char **av)
int anope_event_kill (char *source, int ac, char **av)
int anope_event_mode (char *source, int ac, char **av)
int anope_event_motd (char *source, int ac, char **av)
int anope_event_nick (char *source, int ac, char **av)
int anope_event_opertype (char *source, int ac, char **av)
int anope_event_part (char *source, int ac, char **av)
int anope_event_ping (char *source, int ac, char **av)
int anope_event_privmsg (char *source, int ac, char **av)
int anope_event_quit (char *source, int ac, char **av)
int anope_event_rehash (char *source, int ac, char **av)
int anope_event_sajoin (char *source, int ac, char **av)
int anope_event_samode (char *source, int ac, char **av)
int anope_event_sanick (char *source, int ac, char **av)
int anope_event_sapart (char *source, int ac, char **av)
int anope_event_server (char *source, int ac, char **av)
int anope_event_sethost (char *source, int ac, char **av)
int anope_event_setident (char *source, int ac, char **av)
int anope_event_setname (char *source, int ac, char **av)
int anope_event_squit (char *source, int ac, char **av)
int anope_event_topic (char *source, int ac, char **av)
int anope_event_version (char *source, int ac, char **av)
int anope_event_whois (char *source, int ac, char **av)
int AnopeInit (int argc, char **argv)
void inspircd_cmd_211 (char *buf)
void inspircd_cmd_219 (char *source, char *letter)
void inspircd_cmd_242 (char *buf)
void inspircd_cmd_243 (char *buf)
void inspircd_cmd_250 (char *buf)
void inspircd_cmd_307 (char *buf)
void inspircd_cmd_311 (char *buf)
void inspircd_cmd_312 (char *buf)
void inspircd_cmd_317 (char *buf)
void inspircd_cmd_318 (char *source, char *who)
void inspircd_cmd_351 (char *source)
void inspircd_cmd_372 (char *source, char *msg)
void inspircd_cmd_372_error (char *source)
void inspircd_cmd_375 (char *source)
void inspircd_cmd_376 (char *source)
void inspircd_cmd_391 (char *source, char *timestr)
void inspircd_cmd_401 (char *source, char *who)
void inspircd_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
void inspircd_cmd_bot_chan_mode (char *nick, char *chan)
void inspircd_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
void inspircd_cmd_chg_nick (char *oldnick, char *newnick)
void inspircd_cmd_chghost (char *nick, char *vhost)
void inspircd_cmd_chgident (char *nick, char *vIdent)
void inspircd_cmd_connect (int servernum)
void inspircd_cmd_ctcp (char *source, char *dest, char *buf)
void inspircd_cmd_eob ()
void inspircd_cmd_global (char *source, char *buf)
void inspircd_cmd_global_legacy (char *source, char *fmt)
void inspircd_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
void inspircd_cmd_invite (char *source, char *chan, char *nick)
void inspircd_cmd_join (char *user, char *channel, time_t chantime)
void inspircd_cmd_jupe (char *jserver, char *who, char *reason)
void inspircd_cmd_kick (char *source, char *chan, char *user, char *buf)
void inspircd_cmd_mode (char *source, char *dest, char *buf)
void inspircd_cmd_nc_change (User *u)
void inspircd_cmd_nick (char *nick, char *name, char *modes)
void inspircd_cmd_notice (char *source, char *dest, char *buf)
void inspircd_cmd_notice2 (char *source, char *dest, char *msg)
void inspircd_cmd_notice_ops (char *source, char *dest, char *buf)
void inspircd_cmd_part (char *nick, char *chan, char *buf)
void inspircd_cmd_pass (char *pass)
void inspircd_cmd_pong (char *servname, char *who)
void inspircd_cmd_privmsg (char *source, char *dest, char *buf)
void inspircd_cmd_privmsg2 (char *source, char *dest, char *msg)
void inspircd_cmd_protoctl ()
void inspircd_cmd_quit (char *source, char *buf)
void inspircd_cmd_release_svshold (char *nick)
void inspircd_cmd_remove_akill (char *user, char *host)
void inspircd_cmd_serv_notice (char *source, char *dest, char *msg)
void inspircd_cmd_serv_privmsg (char *source, char *dest, char *msg)
void inspircd_cmd_server (char *servname, int hop, char *descript)
void inspircd_cmd_sgline (char *mask, char *reason)
void inspircd_cmd_sqline (char *mask, char *reason)
void inspircd_cmd_squit (char *servname, char *message)
void inspircd_cmd_svid_umode (char *nick, time_t ts)
void inspircd_cmd_svid_umode2 (User *u, char *ts)
void inspircd_cmd_svid_umode3 (User *u, char *ts)
void inspircd_cmd_svsadmin (char *server, int set)
void inspircd_cmd_svshold (char *nick)
void inspircd_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
void inspircd_cmd_svskill (char *source, char *user, char *buf)
void inspircd_cmd_svsmode (User *u, int ac, char **av)
void inspircd_cmd_svsmode_chan (char *name, char *mode, char *nick)
void inspircd_cmd_svsnick (char *source, char *guest, time_t when)
void inspircd_cmd_svsnoop (char *server, int set)
void inspircd_cmd_svso (char *source, char *nick, char *flag)
void inspircd_cmd_svspart (char *source, char *nick, char *chan)
void inspircd_cmd_swhois (char *source, char *who, char *mask)
void inspircd_cmd_szline (char *mask, char *reason, char *whom)
void inspircd_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
void inspircd_cmd_unban (char *name, char *nick)
void inspircd_cmd_unsgline (char *mask)
void inspircd_cmd_unsqline (char *user)
void inspircd_cmd_unszline (char *mask)
void inspircd_cmd_vhost_off (User *u)
void inspircd_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
int inspircd_flood_mode_check (char *value)
void inspircd_set_umode (User *user, int ac, char **av)
int inspircd_valid_chan (char *chan)
int inspircd_valid_nick (char *nick)
void moduleAddAnopeCmds ()
void moduleAddIRCDMsgs (void)

Variables

CBModeInfo myCbmodeinfos []
CBMode myCbmodes [128]
CMMode myCmmodes [128]
char myCsmodes [128]
CUMode myCumodes [128]
IRCDVar myIrcd []
IRCDCAPAB myIrcdcap []
unsigned long umodes [128]


Function Documentation

int anope_event_436 ( char *  source,
int  ac,
char **  av 
)

Definition at line 1109 of file inspircd10.c.

References m_nickcoll(), and MOD_CONT.

int anope_event_admin ( char *  source,
int  ac,
char **  av 
)

Definition at line 1531 of file inspircd10.c.

References MOD_CONT.

int anope_event_away ( char *  source,
int  ac,
char **  av 
)

Definition at line 1118 of file inspircd10.c.

References m_away(), and MOD_CONT.

int anope_event_chghost ( char *  source,
int  ac,
char **  av 
)

Definition at line 1368 of file inspircd10.c.

References alog(), change_user_host(), debug, finduser(), and MOD_CONT.

int anope_event_chgident ( char *  source,
int  ac,
char **  av 
)

Definition at line 1299 of file inspircd10.c.

References alog(), change_user_username(), debug, finduser(), and MOD_CONT.

int anope_event_chgname ( char *  source,
int  ac,
char **  av 
)

Definition at line 1262 of file inspircd10.c.

References alog(), change_user_realname(), debug, finduser(), and MOD_CONT.

int anope_event_credits ( char *  source,
int  ac,
char **  av 
)

Definition at line 1526 of file inspircd10.c.

References MOD_CONT.

int anope_event_fjoin ( char *  source,
int  ac,
char **  av 
)

Definition at line 687 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_fmode ( char *  source,
int  ac,
char **  av 
)

Definition at line 641 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_ftopic ( char *  source,
int  ac,
char **  av 
)

Definition at line 613 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_idle ( char *  source,
int  ac,
char **  av 
)

Definition at line 604 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_join ( char *  source,
int  ac,
char **  av 
)

Definition at line 1225 of file inspircd10.c.

References do_join(), and MOD_CONT.

int anope_event_kick ( char *  source,
int  ac,
char **  av 
)

Definition at line 1216 of file inspircd10.c.

References do_kick(), and MOD_CONT.

int anope_event_kill ( char *  source,
int  ac,
char **  av 
)

Definition at line 1207 of file inspircd10.c.

References m_kill(), and MOD_CONT.

int anope_event_mode ( char *  source,
int  ac,
char **  av 
)

Definition at line 1182 of file inspircd10.c.

References do_cmode(), do_umode(), and MOD_CONT.

int anope_event_motd ( char *  source,
int  ac,
char **  av 
)

Definition at line 1233 of file inspircd10.c.

References m_motd(), and MOD_CONT.

int anope_event_nick ( char *  source,
int  ac,
char **  av 
)

Definition at line 1338 of file inspircd10.c.

References anope_set_umode(), do_nick(), and MOD_CONT.

int anope_event_opertype ( char *  source,
int  ac,
char **  av 
)

Definition at line 626 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_part ( char *  source,
int  ac,
char **  av 
)

Definition at line 1406 of file inspircd10.c.

References do_part(), and MOD_CONT.

int anope_event_ping ( char *  source,
int  ac,
char **  av 
)

Definition at line 1100 of file inspircd10.c.

References inspircd_cmd_pong(), MOD_CONT, and ServerName.

int anope_event_privmsg ( char *  source,
int  ac,
char **  av 
)

Definition at line 1398 of file inspircd10.c.

References m_privmsg(), and MOD_CONT.

int anope_event_quit ( char *  source,
int  ac,
char **  av 
)

Definition at line 1173 of file inspircd10.c.

References do_quit(), and MOD_CONT.

int anope_event_rehash ( char *  source,
int  ac,
char **  av 
)

Definition at line 1521 of file inspircd10.c.

References MOD_CONT.

int anope_event_sajoin ( char *  source,
int  ac,
char **  av 
)

Definition at line 667 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_samode ( char *  source,
int  ac,
char **  av 
)

Definition at line 649 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_sanick ( char *  source,
int  ac,
char **  av 
)

Definition at line 658 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_sapart ( char *  source,
int  ac,
char **  av 
)

Definition at line 677 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_server ( char *  source,
int  ac,
char **  av 
)

Definition at line 1388 of file inspircd10.c.

References do_server(), MOD_CONT, sstrdup(), stricmp(), and uplink.

int anope_event_sethost ( char *  source,
int  ac,
char **  av 
)

Definition at line 1318 of file inspircd10.c.

References alog(), change_user_host(), debug, finduser(), and MOD_CONT.

int anope_event_setident ( char *  source,
int  ac,
char **  av 
)

Definition at line 1281 of file inspircd10.c.

References alog(), change_user_username(), debug, finduser(), and MOD_CONT.

int anope_event_setname ( char *  source,
int  ac,
char **  av 
)

Definition at line 1243 of file inspircd10.c.

References alog(), change_user_realname(), debug, finduser(), and MOD_CONT.

int anope_event_squit ( char *  source,
int  ac,
char **  av 
)

Definition at line 1165 of file inspircd10.c.

References do_squit(), and MOD_CONT.

int anope_event_topic ( char *  source,
int  ac,
char **  av 
)

Definition at line 1129 of file inspircd10.c.

References alog(), check_topiclock(), debug, EVENT_TOPIC_UPDATED, findchan(), merge_args(), MOD_CONT, record_topic(), send_event(), sstrdup(), strscpy(), channel_::topic, channel_::topic_setter, and channel_::topic_time.

int anope_event_version ( char *  source,
int  ac,
char **  av 
)

Definition at line 599 of file inspircd10.c.

Referenced by moduleAddIRCDMsgs().

int anope_event_whois ( char *  source,
int  ac,
char **  av 
)

Definition at line 1414 of file inspircd10.c.

References m_whois(), and MOD_CONT.

int AnopeInit ( int  argc,
char **  argv 
)

Now tell anope how to use us.

Deal with modes anope _needs_ to know

Definition at line 1680 of file inspircd10.c.

References CMODE_i, CMODE_k, CMODE_l, CMODE_p, CMODE_s, MOD_CONT, moduleAddAnopeCmds(), moduleAddAuthor(), moduleAddIRCDMsgs(), moduleAddVersion(), moduleSetType(), myCbmodeinfos, myCbmodes, myCmmodes, myCsmodes, myCumodes, myIrcd, myIrcdcap, pmodule_invis_umode(), pmodule_invite_cmode(), pmodule_ircd_cap(), pmodule_ircd_cbmodeinfos(), pmodule_ircd_cbmodes(), pmodule_ircd_cmmodes(), pmodule_ircd_csmodes(), pmodule_ircd_cumodes(), pmodule_ircd_flood_mode_char_remove(), pmodule_ircd_flood_mode_char_set(), pmodule_ircd_useTSMode(), pmodule_ircd_var(), pmodule_ircd_version(), pmodule_key_mode(), pmodule_limit_mode(), pmodule_oper_umode(), pmodule_private_cmode(), pmodule_secret_cmode(), PROTOCOL, UMODE_i, and UMODE_o.

void inspircd_cmd_211 ( char *  buf  ) 

Definition at line 1002 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 948 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_242 ( char *  buf  ) 

Definition at line 982 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_243 ( char *  buf  ) 

Definition at line 992 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_250 ( char *  buf  ) 

Definition at line 898 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_307 ( char *  buf  ) 

Definition at line 908 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_311 ( char *  buf  ) 

Definition at line 918 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_312 ( char *  buf  ) 

Definition at line 928 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_317 ( char *  buf  ) 

Definition at line 938 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_318 ( char *  source,
char *  who 
)

Definition at line 972 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_351 ( char *  source  ) 

Definition at line 787 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 556 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_372_error ( char *  source  ) 

Definition at line 561 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_375 ( char *  source  ) 

Definition at line 567 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_376 ( char *  source  ) 

Definition at line 573 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 889 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_401 ( char *  source,
char *  who 
)

Definition at line 963 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_akill ( char *  user,
char *  host,
char *  who,
time_t  when,
time_t  expires,
char *  reason 
)

Definition at line 531 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

Definition at line 782 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_bot_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)

Definition at line 713 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 1047 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_chghost ( char *  nick,
char *  vhost 
)

Definition at line 847 of file inspircd10.c.

References s_OperServ, and send_cmd().

Referenced by inspircd_cmd_vhost_on().

void inspircd_cmd_chgident ( char *  nick,
char *  vIdent 
)

Definition at line 856 of file inspircd10.c.

References s_OperServ, and send_cmd().

Referenced by inspircd_cmd_vhost_on().

void inspircd_cmd_connect ( int  servernum  ) 

Definition at line 1079 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_ctcp ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 1580 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_eob (  ) 

Definition at line 1515 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_global ( char *  source,
char *  buf 
)

Definition at line 1012 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_global_legacy ( char *  source,
char *  fmt 
)

Definition at line 1564 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_guest_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)

Definition at line 585 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_invite ( char *  source,
char *  chan,
char *  nick 
)

Definition at line 865 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_join ( char *  user,
char *  channel,
time_t  chantime 
)

Definition at line 832 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_jupe ( char *  jserver,
char *  who,
char *  reason 
)

Definition at line 1550 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_kick ( char *  source,
char *  chan,
char *  user,
char *  buf 
)

Definition at line 720 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_mode ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 591 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().

void inspircd_cmd_nc_change ( User u  ) 

Definition at line 1481 of file inspircd10.c.

Referenced by moduleAddAnopeCmds().