unreal32.c File Reference

#include "services.h"
#include "pseudo.h"
#include "unreal32.h"

Include dependency graph for unreal32.c:

Go to the source code of this file.

Functions

void unreal_set_umode (User *user, int ac, char **av)
int anope_event_capab (char *source, int ac, char **av)
void unreal_cmd_svsnoop (char *server, int set)
void unreal_cmd_svsadmin (char *server, int set)
void unreal_cmd_remove_akill (char *user, char *host)
void unreal_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
void unreal_cmd_vhost_off (User *u)
void unreal_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
void unreal_cmd_svskill (char *source, char *user, char *buf)
void unreal_cmd_svsmode (User *u, int ac, char **av)
void unreal_cmd_372 (char *source, char *msg)
void unreal_cmd_372_error (char *source)
void unreal_cmd_375 (char *source)
void unreal_cmd_376 (char *source)
void unreal_cmd_nick (char *nick, char *name, char *modes)
void unreal_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
void unreal_cmd_mode (char *source, char *dest, char *buf)
void unreal_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
void unreal_cmd_kick (char *source, char *chan, char *user, char *buf)
void unreal_cmd_notice_ops (char *source, char *dest, char *buf)
void unreal_cmd_notice (char *source, char *dest, char *buf)
void unreal_cmd_notice2 (char *source, char *dest, char *msg)
void unreal_cmd_privmsg (char *source, char *dest, char *buf)
void unreal_cmd_privmsg2 (char *source, char *dest, char *msg)
void unreal_cmd_serv_notice (char *source, char *dest, char *msg)
void unreal_cmd_serv_privmsg (char *source, char *dest, char *msg)
void unreal_cmd_bot_chan_mode (char *nick, char *chan)
void unreal_cmd_351 (char *source)
void unreal_cmd_quit (char *source, char *buf)
void unreal_cmd_capab ()
void unreal_cmd_pass (char *pass)
void unreal_cmd_server (char *servname, int hop, char *descript)
void unreal_cmd_pong (char *servname, char *who)
void unreal_cmd_join (char *user, char *channel, time_t chantime)
void unreal_cmd_unsqline (char *user)
void unreal_cmd_chghost (char *nick, char *vhost)
void unreal_cmd_chgident (char *nick, char *vIdent)
void unreal_cmd_invite (char *source, char *chan, char *nick)
void unreal_cmd_part (char *nick, char *chan, char *buf)
void unreal_cmd_391 (char *source, char *timestr)
void unreal_cmd_250 (char *buf)
void unreal_cmd_307 (char *buf)
void unreal_cmd_311 (char *buf)
void unreal_cmd_312 (char *buf)
void unreal_cmd_317 (char *buf)
void unreal_cmd_219 (char *source, char *letter)
void unreal_cmd_401 (char *source, char *who)
void unreal_cmd_318 (char *source, char *who)
void unreal_cmd_242 (char *buf)
void unreal_cmd_243 (char *buf)
void unreal_cmd_211 (char *buf)
void unreal_cmd_global (char *source, char *buf)
void unreal_cmd_global_legacy (char *source, char *fmt)
void unreal_cmd_sqline (char *mask, char *reason)
void unreal_cmd_squit (char *servname, char *message)
void unreal_cmd_svso (char *source, char *nick, char *flag)
void unreal_cmd_chg_nick (char *oldnick, char *newnick)
void unreal_cmd_svsnick (char *source, char *guest, time_t when)
void unreal_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
void unreal_cmd_connect (int servernum)
int anope_event_ping (char *source, int ac, char **av)
void unreal_cmd_netinfo (int ac, char **av)
int anope_event_netinfo (char *source, int ac, char **av)
int anope_event_tkl (char *source, int ac, char **av)
int anope_event_eos (char *source, int ac, char **av)
int anope_event_436 (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_pass (char *source, int ac, char **av)
int anope_event_mode (char *source, int ac, char **av)
int anope_event_umode2 (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_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_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 unreal_cmd_svshold (char *nick)
void unreal_cmd_release_svshold (char *nick)
void unreal_cmd_unsgline (char *mask)
void unreal_cmd_unszline (char *mask)
void unreal_cmd_szline (char *mask, char *reason, char *whom)
void unreal_cmd_sgline (char *mask, char *reason)
void unreal_cmd_unban (char *name, char *nick)
void unreal_cmd_svsmode_chan (char *name, char *mode, char *nick)
void unreal_cmd_svid_umode (char *nick, time_t ts)
void unreal_cmd_nc_change (User *u)
void unreal_cmd_svid_umode2 (User *u, char *ts)
void unreal_cmd_svid_umode3 (User *u, char *ts)
int anope_event_error (char *source, int ac, char **av)
int anope_event_notice (char *source, int ac, char **av)
int anope_event_smo (char *source, int ac, char **av)
void unreal_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
void unreal_cmd_svspart (char *source, char *nick, char *chan)
int anope_event_globops (char *source, int ac, char **av)
int anope_event_swhois (char *source, int ac, char **av)
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 anope_event_sdesc (char *source, int ac, char **av)
int anope_event_sjoin (char *source, int ac, char **av)
void unreal_cmd_swhois (char *source, char *who, char *mask)
void unreal_cmd_eob ()
void unreal_cmd_svswatch (char *sender, char *nick, char *parm)
int unreal_flood_mode_check (char *value)
void unreal_cmd_jupe (char *jserver, char *who, char *reason)
int unreal_valid_nick (char *nick)
int unreal_valid_chan (char *chan)
void unreal_cmd_ctcp (char *source, char *dest, char *buf)
void moduleAddIRCDMsgs (void)
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 1168 of file unreal32.c.

References m_nickcoll(), and MOD_CONT.

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

Definition at line 1705 of file unreal32.c.

References MOD_CONT.

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

Definition at line 1182 of file unreal32.c.

References m_away(), and MOD_CONT.

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

Definition at line 489 of file unreal32.c.

References capab_parse(), and MOD_CONT.

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

Definition at line 1462 of file unreal32.c.

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

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

Definition at line 1353 of file unreal32.c.

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

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

Definition at line 1316 of file unreal32.c.

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

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

Definition at line 1700 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1154 of file unreal32.c.

References findserver(), finish_sync(), MOD_CONT, serv_uplink, and servlist.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1634 of file unreal32.c.

References alog(), debug, and MOD_CONT.

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

Definition at line 1685 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1279 of file unreal32.c.

References do_join(), and MOD_CONT.

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

Definition at line 1270 of file unreal32.c.

References do_kick(), and MOD_CONT.

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

Definition at line 1261 of file unreal32.c.

References m_kill(), and MOD_CONT.

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

Definition at line 1233 of file unreal32.c.

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

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

Definition at line 1287 of file unreal32.c.

References m_motd(), and MOD_CONT.

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

Definition at line 1128 of file unreal32.c.

References MOD_CONT, and unreal_cmd_netinfo().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1422 of file unreal32.c.

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

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

Definition at line 1647 of file unreal32.c.

References MOD_CONT.

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

Definition at line 1512 of file unreal32.c.

References do_part(), and MOD_CONT.

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

Definition at line 1227 of file unreal32.c.

References MOD_CONT.

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

Definition at line 1103 of file unreal32.c.

References MOD_CONT, ServerName, and unreal_cmd_pong().

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

Definition at line 1504 of file unreal32.c.

References m_privmsg(), and MOD_CONT.

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

Definition at line 1219 of file unreal32.c.

References do_quit(), and MOD_CONT.

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

Definition at line 1695 of file unreal32.c.

References MOD_CONT.

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

Definition at line 1710 of file unreal32.c.

References server_::desc, findserver(), MOD_CONT, and servlist.

Referenced by moduleAddIRCDMsgs().

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

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

Definition at line 1372 of file unreal32.c.

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

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

Definition at line 1335 of file unreal32.c.

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

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

Definition at line 1297 of file unreal32.c.

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

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

Definition at line 1722 of file unreal32.c.

References do_sjoin(), and MOD_CONT.

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

Definition at line 1652 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1211 of file unreal32.c.

References do_squit(), and MOD_CONT.

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

Definition at line 1690 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1149 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1203 of file unreal32.c.

References do_topic(), and MOD_CONT.

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

Definition at line 1252 of file unreal32.c.

References do_umode2(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1520 of file unreal32.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 2110 of file unreal32.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(), unreal_cmd_211(), unreal_cmd_219(), unreal_cmd_242(), unreal_cmd_243(), unreal_cmd_250(), unreal_cmd_307(), unreal_cmd_311(), unreal_cmd_312(), unreal_cmd_317(), unreal_cmd_318(), unreal_cmd_351(), unreal_cmd_372(), unreal_cmd_372_error(), unreal_cmd_375(), unreal_cmd_376(), unreal_cmd_391(), unreal_cmd_401(), unreal_cmd_akill(), unreal_cmd_bot_chan_mode(), unreal_cmd_bot_nick(), unreal_cmd_chg_nick(), unreal_cmd_connect(), unreal_cmd_ctcp(), unreal_cmd_eob(), unreal_cmd_global(), unreal_cmd_global_legacy(), unreal_cmd_guest_nick(), unreal_cmd_invite(), unreal_cmd_join(), unreal_cmd_jupe(), unreal_cmd_kick(), unreal_cmd_mode(), unreal_cmd_nc_change(), unreal_cmd_nick(), unreal_cmd_notice(), unreal_cmd_notice2(), unreal_cmd_notice_ops(), unreal_cmd_part(), unreal_cmd_pong(), unreal_cmd_privmsg(), unreal_cmd_privmsg2(), unreal_cmd_quit(), unreal_cmd_release_svshold(), unreal_cmd_remove_akill(), unreal_cmd_serv_notice(), unreal_cmd_serv_privmsg(), unreal_cmd_sgline(), unreal_cmd_sqline(), unreal_cmd_squit(), unreal_cmd_svid_umode(), unreal_cmd_svid_umode2(), unreal_cmd_svid_umode3(), unreal_cmd_svshold(), unreal_cmd_svsjoin(), unreal_cmd_svskill(), unreal_cmd_svsmode(), unreal_cmd_svsmode_chan(), unreal_cmd_svsnick(), unreal_cmd_svsnoop(), unreal_cmd_svso(), unreal_cmd_svspart(), unreal_cmd_swhois(), unreal_cmd_szline(), unreal_cmd_topic(), unreal_cmd_unban(), unreal_cmd_unsgline(), unreal_cmd_unsqline(), unreal_cmd_unszline(), unreal_cmd_vhost_off(), unreal_cmd_vhost_on(), unreal_flood_mode_check(), unreal_set_umode(), unreal_valid_chan(), and unreal_valid_nick().

void moduleAddIRCDMsgs ( void   ) 

void unreal_cmd_211 ( char *  buf  ) 

Definition at line 967 of file unreal32.c.

References send_cmd().

void unreal_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 913 of file unreal32.c.

References send_cmd().

void unreal_cmd_242 ( char *  buf  ) 

Definition at line 947 of file unreal32.c.

References send_cmd().

void unreal_cmd_243 ( char *  buf  ) 

Definition at line 957 of file unreal32.c.

References send_cmd().

void unreal_cmd_250 ( char *  buf  ) 

Definition at line 863 of file unreal32.c.

References send_cmd().

void unreal_cmd_307 ( char *  buf  ) 

Definition at line 873 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_311 ( char *  buf  ) 

Definition at line 883 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_312 ( char *  buf  ) 

Definition at line 893 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_317 ( char *  buf  ) 

Definition at line 903 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_318 ( char *  source,
char *  who 
)

Definition at line 937 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_351 ( char *  source  ) 

void unreal_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 581 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_372_error ( char *  source  ) 

Definition at line 586 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_375 ( char *  source  ) 

Definition at line 592 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_376 ( char *  source  ) 

Definition at line 598 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 854 of file unreal32.c.

References send_cmd(), and ServerName.

void unreal_cmd_401 ( char *  source,
char *  who 
)

Definition at line 928 of file unreal32.c.

References send_cmd(), and ServerName.

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

Definition at line 533 of file unreal32.c.

References send_cmd(), and send_token().

void unreal_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

Definition at line 705 of file unreal32.c.

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

void unreal_cmd_bot_nick ( char *  nick,
char *  user,
char *  host,