ultimate2.c File Reference

#include "services.h"
#include "pseudo.h"
#include "ultimate2.h"

Include dependency graph for ultimate2.c:

Go to the source code of this file.

Functions

void ultiamte2_set_umode (User *user, int ac, char **av)
int anope_event_setname (char *source, int ac, char **av)
int anope_event_chgname (char *source, int ac, char **av)
int anope_event_setident (char *source, int ac, char **av)
int anope_event_chgident (char *source, int ac, char **av)
int anope_event_sethost (char *source, int ac, char **av)
int anope_event_nick (char *source, int ac, char **av)
int anope_event_chghost (char *source, int ac, char **av)
int anope_event_436 (char *source, int ac, char **av)
void moduleAddIRCDMsgs (void)
int anope_event_capab (char *source, int ac, char **av)
void ultimate2_cmd_sqline (char *mask, char *reason)
void ultimate2_cmd_svsnoop (char *server, int set)
void ultimate2_cmd_svsadmin (char *server, int set)
void ultimate2_cmd_remove_akill (char *user, char *host)
void ultimate2_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
void ultimate2_cmd_vhost_off (User *u)
void ultimate2_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
void ultimate2_cmd_unsqline (char *user)
void ultimate2_cmd_join (char *user, char *channel, time_t chantime)
void ultimate2_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
void ultimate2_cmd_svskill (char *source, char *user, char *buf)
void ultimate2_cmd_svsmode (User *u, int ac, char **av)
void ultimate2_cmd_capab ()
void ultimate2_cmd_pass (char *pass)
void ultimate2_cmd_server (char *servname, int hop, char *descript)
void ultimate2_cmd_pong (char *servname, char *who)
void ultimate2_cmd_connect (int servernum)
void ultimate2_cmd_chghost (char *nick, char *vhost)
void ultimate2_cmd_chgident (char *nick, char *vIdent)
void ultimate2_cmd_invite (char *source, char *chan, char *nick)
void ultimate2_cmd_part (char *nick, char *chan, char *buf)
void ultimate2_cmd_391 (char *source, char *timestr)
void ultimate2_cmd_250 (char *buf)
void ultimate2_cmd_307 (char *buf)
void ultimate2_cmd_311 (char *buf)
void ultimate2_cmd_312 (char *buf)
void ultimate2_cmd_317 (char *buf)
void ultimate2_cmd_219 (char *source, char *letter)
void ultimate2_cmd_401 (char *source, char *who)
void ultimate2_cmd_318 (char *source, char *who)
void ultimate2_cmd_242 (char *buf)
void ultimate2_cmd_243 (char *buf)
void ultimate2_cmd_211 (char *buf)
void ultimate2_cmd_global (char *source, char *buf)
void ultimate2_cmd_squit (char *servname, char *message)
void ultimate2_cmd_svso (char *source, char *nick, char *flag)
void ultimate2_cmd_chg_nick (char *oldnick, char *newnick)
void ultimate2_cmd_svsnick (char *source, char *guest, time_t when)
int anope_event_ping (char *source, int ac, char **av)
int anope_event_away (char *source, int ac, char **av)
int anope_event_topic (char *source, int ac, char **av)
int anope_event_squit (char *source, int ac, char **av)
int anope_event_quit (char *source, int ac, char **av)
int anope_event_mode (char *source, int ac, char **av)
int anope_event_kill (char *source, int ac, char **av)
int anope_event_kick (char *source, int ac, char **av)
int anope_event_join (char *source, int ac, char **av)
int anope_event_motd (char *source, int ac, char **av)
int anope_event_server (char *source, int ac, char **av)
int anope_event_privmsg (char *source, int ac, char **av)
int anope_event_part (char *source, int ac, char **av)
int anope_event_whois (char *source, int ac, char **av)
void ultimate2_cmd_kick (char *source, char *chan, char *user, char *buf)
void ultimate2_cmd_notice_ops (char *source, char *dest, char *buf)
void ultimate2_cmd_notice (char *source, char *dest, char *buf)
void ultimate2_cmd_notice2 (char *source, char *dest, char *msg)
void ultimate2_cmd_privmsg (char *source, char *dest, char *buf)
void ultimate2_cmd_privmsg2 (char *source, char *dest, char *msg)
void ultimate2_cmd_serv_notice (char *source, char *dest, char *msg)
void ultimate2_cmd_serv_privmsg (char *source, char *dest, char *msg)
void ultimate2_cmd_nick (char *nick, char *name, char *mode)
void ultimate2_cmd_351 (char *source)
void ultimate2_cmd_quit (char *source, char *buf)
void ultimate2_cmd_mode (char *source, char *dest, char *buf)
void ultimate2_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
void ultimate2_cmd_372 (char *source, char *msg)
void ultimate2_cmd_372_error (char *source)
void ultimate2_cmd_375 (char *source)
void ultimate2_cmd_376 (char *source)
void ultimate2_cmd_bot_chan_mode (char *nick, char *chan)
void ultimate2_cmd_svshold (char *nick)
void ultimate2_cmd_release_svshold (char *nick)
void ultimate2_cmd_unsgline (char *mask)
void ultimate2_cmd_unszline (char *mask)
void ultimate2_cmd_szline (char *mask, char *reason, char *whom)
void ultimate2_cmd_sgline (char *mask, char *reason)
void ultimate2_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
void ultimate2_cmd_unban (char *name, char *nick)
void ultimate2_cmd_svsmode_chan (char *name, char *mode, char *nick)
void ultimate2_cmd_svid_umode (char *nick, time_t ts)
void ultimate2_cmd_nc_change (User *u)
void ultimate2_cmd_svid_umode2 (User *u, char *ts)
void ultimate2_cmd_svid_umode3 (User *u, char *ts)
int anope_event_notice (char *source, int ac, char **av)
int anope_event_pass (char *source, int ac, char **av)
int anope_event_vctrl (char *source, int ac, char **av)
int anope_event_netinfo (char *source, int ac, char **av)
int anope_event_snetinfo (char *source, int ac, char **av)
int anope_event_sqline (char *source, int ac, char **av)
void ultimate2_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
void ultimate2_cmd_svspart (char *source, char *nick, char *chan)
void ultimate2_cmd_swhois (char *source, char *who, char *mask)
void ultimate2_cmd_eob ()
int anope_event_rehash (char *source, int ac, char **av)
int anope_event_credits (char *source, int ac, char **av)
int anope_event_admin (char *source, int ac, char **av)
int ultiamte2_flood_mode_check (char *value)
int anope_event_error (char *source, int ac, char **av)
void ultimate2_cmd_jupe (char *jserver, char *who, char *reason)
void ultimate2_cmd_global_legacy (char *source, char *fmt)
int ultiamte2_valid_nick (char *nick)
int ultiamte2_valid_chan (char *chan)
void ultimate2_cmd_ctcp (char *source, char *dest, char *buf)
void moduleAddAnopeCmds ()
int AnopeInit (int argc, char **argv)

Variables

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


Function Documentation

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

Definition at line 580 of file ultimate2.c.

References m_nickcoll(), and MOD_CONT.

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

Definition at line 1533 of file ultimate2.c.

References MOD_CONT.

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

Definition at line 1120 of file ultimate2.c.

References m_away(), and MOD_CONT.

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

Definition at line 774 of file ultimate2.c.

References capab_parse(), and MOD_CONT.

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

Definition at line 561 of file ultimate2.c.

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

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

Definition at line 505 of file ultimate2.c.

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

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

Definition at line 467 of file ultimate2.c.

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

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

Definition at line 1528 of file ultimate2.c.

References MOD_CONT.

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

Definition at line 1552 of file ultimate2.c.

References alog(), debug, and MOD_CONT.

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

Definition at line 1186 of file ultimate2.c.

References do_join(), and MOD_CONT.

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

Definition at line 1177 of file ultimate2.c.

References do_kick(), and MOD_CONT.

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

Definition at line 1168 of file ultimate2.c.

References m_kill(), and MOD_CONT.

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

Definition at line 1154 of file ultimate2.c.

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

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

Definition at line 1194 of file ultimate2.c.

References m_motd(), and MOD_CONT.

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

Definition at line 1474 of file ultimate2.c.

References MOD_CONT.

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

Definition at line 543 of file ultimate2.c.

References do_nick(), and MOD_CONT.

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

Definition at line 1459 of file ultimate2.c.

References MOD_CONT.

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

Definition at line 1223 of file ultimate2.c.

References do_part(), and MOD_CONT.

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

Definition at line 1464 of file ultimate2.c.

References MOD_CONT.

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

Definition at line 1112 of file ultimate2.c.

References MOD_CONT, ServerName, and ultimate2_cmd_pong().

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

Definition at line 1215 of file ultimate2.c.

References m_privmsg(), and MOD_CONT.

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

Definition at line 1145 of file ultimate2.c.

References do_quit(), and MOD_CONT.

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

Definition at line 1523 of file ultimate2.c.

References MOD_CONT.

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

Definition at line 1205 of file ultimate2.c.

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

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

Definition at line 524 of file ultimate2.c.

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

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

Definition at line 486 of file ultimate2.c.

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

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

Definition at line 448 of file ultimate2.c.

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

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

Definition at line 1479 of file ultimate2.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1484 of file ultimate2.c.

References MOD_CONT.

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

Definition at line 1137 of file ultimate2.c.

References do_squit(), and MOD_CONT.

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

Definition at line 1129 of file ultimate2.c.

References do_topic(), and MOD_CONT.

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

Definition at line 1469 of file ultimate2.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1231 of file ultimate2.c.

References m_whois(), and MOD_CONT.

int AnopeInit ( int  argc,
char **  argv 
)

void moduleAddAnopeCmds (  ) 

Tell anope which function we want to perform each task inside of anope. These prototypes must match what anope expects.

Definition at line 1621 of file ultimate2.c.

References pmodule_cmd_211(), pmodule_cmd_219(), pmodule_cmd_242(), pmodule_cmd_243(), pmodule_cmd_250(), pmodule_cmd_307(), pmodule_cmd_311(), pmodule_cmd_312(), pmodule_cmd_317(), pmodule_cmd_318(), pmodule_cmd_351(), pmodule_cmd_372(), pmodule_cmd_372_error(), pmodule_cmd_375(), pmodule_cmd_376(), pmodule_cmd_391(), pmodule_cmd_401(), pmodule_cmd_akill(), pmodule_cmd_bot_chan_mode(), pmodule_cmd_bot_nick(), pmodule_cmd_chg_nick(), pmodule_cmd_connect(), pmodule_cmd_ctcp(), pmodule_cmd_eob(), pmodule_cmd_global(), pmodule_cmd_global_legacy(), pmodule_cmd_guest_nick(), pmodule_cmd_invite(), pmodule_cmd_join(), pmodule_cmd_jupe(), pmodule_cmd_kick(), pmodule_cmd_mode(), pmodule_cmd_nc_change(), pmodule_cmd_nick(), pmodule_cmd_notice(), pmodule_cmd_notice2(), pmodule_cmd_notice_ops(), pmodule_cmd_part(), pmodule_cmd_pong(), pmodule_cmd_privmsg(), pmodule_cmd_privmsg2(), pmodule_cmd_quit(), pmodule_cmd_release_svshold(), pmodule_cmd_remove_akill(), pmodule_cmd_serv_notice(), pmodule_cmd_serv_privmsg(), pmodule_cmd_sgline(), pmodule_cmd_sqline(), pmodule_cmd_squit(), pmodule_cmd_svid_umode(), pmodule_cmd_svid_umode2(), pmodule_cmd_svid_umode3(), pmodule_cmd_svshold(), pmodule_cmd_svsjoin(), pmodule_cmd_svskill(), pmodule_cmd_svsmode(), pmodule_cmd_svsmode_chan(), pmodule_cmd_svsnick(), pmodule_cmd_svsnoop(), pmodule_cmd_svso(), pmodule_cmd_svspart(), pmodule_cmd_swhois(), pmodule_cmd_szline(), pmodule_cmd_topic(), pmodule_cmd_unban(), pmodule_cmd_unsgline(), pmodule_cmd_unsqline(), pmodule_cmd_unszline(), pmodule_cmd_vhost_off(), pmodule_cmd_vhost_on(), pmodule_flood_mode_check(), pmodule_set_umode(), pmodule_valid_chan(), pmodule_valid_nick(), ultiamte2_flood_mode_check(), ultiamte2_set_umode(), ultiamte2_valid_chan(), ultiamte2_valid_nick(), ultimate2_cmd_211(), ultimate2_cmd_219(), ultimate2_cmd_242(), ultimate2_cmd_243(), ultimate2_cmd_250(), ultimate2_cmd_307(), ultimate2_cmd_311(), ultimate2_cmd_312(), ultimate2_cmd_317(), ultimate2_cmd_318(), ultimate2_cmd_351(), ultimate2_cmd_372(), ultimate2_cmd_372_error(), ultimate2_cmd_375(), ultimate2_cmd_376(), ultimate2_cmd_391(), ultimate2_cmd_401(), ultimate2_cmd_akill(), ultimate2_cmd_bot_chan_mode(), ultimate2_cmd_bot_nick(), ultimate2_cmd_chg_nick(), ultimate2_cmd_connect(), ultimate2_cmd_ctcp(), ultimate2_cmd_eob(), ultimate2_cmd_global(), ultimate2_cmd_global_legacy(), ultimate2_cmd_guest_nick(), ultimate2_cmd_invite(), ultimate2_cmd_join(), ultimate2_cmd_jupe(), ultimate2_cmd_kick(), ultimate2_cmd_mode(), ultimate2_cmd_nc_change(), ultimate2_cmd_nick(), ultimate2_cmd_notice(), ultimate2_cmd_notice2(), ultimate2_cmd_notice_ops(), ultimate2_cmd_part(), ultimate2_cmd_pong(), ultimate2_cmd_privmsg(), ultimate2_cmd_privmsg2(), ultimate2_cmd_quit(), ultimate2_cmd_release_svshold(), ultimate2_cmd_remove_akill(), ultimate2_cmd_serv_notice(), ultimate2_cmd_serv_privmsg(), ultimate2_cmd_sgline(), ultimate2_cmd_sqline(), ultimate2_cmd_squit(), ultimate2_cmd_svid_umode(), ultimate2_cmd_svid_umode2(), ultimate2_cmd_svid_umode3(), ultimate2_cmd_svshold(), ultimate2_cmd_svsjoin(), ultimate2_cmd_svskill(), ultimate2_cmd_svsmode(), ultimate2_cmd_svsmode_chan(), ultimate2_cmd_svsnick(), ultimate2_cmd_svsnoop(), ultimate2_cmd_svso(), ultimate2_cmd_svspart(), ultimate2_cmd_swhois(), ultimate2_cmd_szline(), ultimate2_cmd_topic(), ultimate2_cmd_unban(), ultimate2_cmd_unsgline(), ultimate2_cmd_unsqline(), ultimate2_cmd_unszline(), ultimate2_cmd_vhost_off(), and ultimate2_cmd_vhost_on().

void moduleAddIRCDMsgs ( void   ) 

int ultiamte2_flood_mode_check ( char *  value  ) 

Definition at line 1538 of file ultimate2.c.

Referenced by moduleAddAnopeCmds().

void ultiamte2_set_umode ( User user,
int  ac,
char **  av 
)

int ultiamte2_valid_chan ( char *  chan  ) 

Definition at line 1595 of file ultimate2.c.

Referenced by moduleAddAnopeCmds().

int ultiamte2_valid_nick ( char *  nick  ) 

Definition at line 1585 of file ultimate2.c.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_211 ( char *  buf  ) 

Definition at line 1052 of file ultimate2.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 998 of file ultimate2.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_242 ( char *  buf  ) 

Definition at line 1032 of file ultimate2.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_243 ( char *  buf  ) 

Definition at line 1042 of file ultimate2.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_250 ( char *  buf  ) 

Definition at line 948 of file ultimate2.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_307 ( char *  buf  ) 

Definition at line 958 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_311 ( char *  buf  ) 

Definition at line 968 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_312 ( char *  buf  ) 

Definition at line 978 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_317 ( char *  buf  ) 

Definition at line 988 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_318 ( char *  source,
char *  who 
)

Definition at line 1022 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_351 ( char *  source  ) 

void ultimate2_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 1346 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_372_error ( char *  source  ) 

Definition at line 1351 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_375 ( char *  source  ) 

Definition at line 1357 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_376 ( char *  source  ) 

Definition at line 1363 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 939 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_401 ( char *  source,
char *  who 
)

Definition at line 1013 of file ultimate2.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

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

Definition at line 832 of file ultimate2.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ultimate2_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

Definition at line 1368 of file ultimate2.c.

References anope_cmd_mode(), ircdvars_::botchanumode, and ircd.

Referenced by moduleAddAnopeCmds().

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

void ultimate2_cmd_capab (  ) 

Definition at line 853 of file ultimate2.c.

References send_cmd(), and UseTokens.

Referenced by ultimate2_cmd_connect().