Anope IRC Services  Version 1.8
Functions | Variables
shadowircd.c File Reference
#include "services.h"
#include "pseudo.h"
#include "shadowircd.h"
#include "version.h"
Include dependency graph for shadowircd.c:

Go to the source code of this file.

Functions

void shadowircd_set_umode (User *user, int ac, char **av)
 
void shadowircd_cmd_notice (char *source, char *dest, char *buf)
 
void shadowircd_cmd_notice2 (char *source, char *dest, char *msg)
 
void shadowircd_cmd_privmsg (char *source, char *dest, char *buf)
 
void shadowircd_cmd_privmsg2 (char *source, char *dest, char *msg)
 
void shadowircd_cmd_serv_notice (char *source, char *dest, char *msg)
 
void shadowircd_cmd_serv_privmsg (char *source, char *dest, char *msg)
 
void shadowircd_cmd_global (char *source, char *buf)
 
void shadowircd_cmd_global_legacy (char *source, char *fmt)
 
int anope_event_sjoin (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_topic (char *source, int ac, char **av)
 
int anope_event_tburst (char *source, int ac, char **av)
 
int anope_event_436 (char *source, int ac, char **av)
 
void moduleAddIRCDMsgs (void)
 
void shadowircd_cmd_sqline (char *mask, char *reason)
 
void shadowircd_cmd_unsgline (char *mask)
 
void shadowircd_cmd_unszline (char *mask)
 
void shadowircd_cmd_szline (char *mask, char *reason, char *whom)
 
void shadowircd_cmd_svsnoop (char *server, int set)
 
void shadowircd_cmd_svsadmin (char *server, int set)
 
void shadowircd_cmd_sgline (char *mask, char *reason)
 
void shadowircd_cmd_remove_akill (char *user, char *host)
 
void shadowircd_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
 
void shadowircd_cmd_vhost_off (User *u)
 
void shadowircd_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
 
void shadowircd_cmd_unsqline (char *user)
 
void shadowircd_cmd_join (char *user, char *channel, time_t chantime)
 
void shadowircd_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
 
void shadowircd_cmd_svskill (char *source, char *user, char *buf)
 
void shadowircd_cmd_svsmode (User *u, int ac, char **av)
 
void shadowircd_cmd_svsinfo ()
 
void shadowircd_cmd_svinfo ()
 
void shadowircd_cmd_capab ()
 
void shadowircd_cmd_pass (char *pass)
 
void shadowircd_cmd_server (char *servname, int hop, char *descript)
 
void shadowircd_cmd_connect (int servernum)
 
void shadowircd_cmd_bob ()
 
void shadowircd_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
 
void shadowircd_cmd_part (char *nick, char *chan, char *buf)
 
int anope_event_ping (char *source, int ac, char **av)
 
int anope_event_away (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)
 
void shadowircd_cmd_eob ()
 
int anope_event_join (char *source, int ac, char **av)
 
int anope_event_motd (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)
 
int anope_event_server (char *source, int ac, char **av)
 
int anope_event_sid (char *source, int ac, char **av)
 
int anope_event_eos (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)
 
void shadowircd_cmd_372 (char *source, char *msg)
 
void shadowircd_cmd_372_error (char *source)
 
void shadowircd_cmd_375 (char *source)
 
void shadowircd_cmd_376 (char *source)
 
void shadowircd_cmd_391 (char *source, char *timestr)
 
void shadowircd_cmd_250 (char *buf)
 
void shadowircd_cmd_307 (char *buf)
 
void shadowircd_cmd_311 (char *buf)
 
void shadowircd_cmd_312 (char *buf)
 
void shadowircd_cmd_317 (char *buf)
 
void shadowircd_cmd_219 (char *source, char *letter)
 
void shadowircd_cmd_401 (char *source, char *who)
 
void shadowircd_cmd_318 (char *source, char *who)
 
void shadowircd_cmd_242 (char *buf)
 
void shadowircd_cmd_243 (char *buf)
 
void shadowircd_cmd_211 (char *buf)
 
void shadowircd_cmd_mode (char *source, char *dest, char *buf)
 
void shadowircd_cmd_tmode (char *source, char *dest, char *buf)
 
void shadowircd_cmd_nick (char *nick, char *name, char *mode)
 
void shadowircd_cmd_kick (char *source, char *chan, char *user, char *buf)
 
void shadowircd_cmd_notice_ops (char *source, char *dest, char *buf)
 
void shadowircd_cmd_bot_chan_mode (char *nick, char *chan)
 
void shadowircd_cmd_quit (char *source, char *buf)
 
void shadowircd_cmd_pong (char *servname, char *who)
 
void shadowircd_cmd_invite (char *source, char *chan, char *nick)
 
void shadowircd_cmd_squit (char *servname, char *message)
 
int anope_event_mode (char *source, int ac, char **av)
 
int anope_event_tmode (char *source, int ac, char **av)
 
void shadowircd_cmd_351 (char *source)
 
int anope_event_capab (char *source, int ac, char **av)
 
void shadowircd_cmd_svshold (char *nick)
 
void shadowircd_cmd_release_svshold (char *nick)
 
void shadowircd_cmd_svsnick (char *nick, char *newnick, time_t when)
 
void shadowircd_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
 
void shadowircd_cmd_svso (char *source, char *nick, char *flag)
 
void shadowircd_cmd_unban (char *name, char *nick)
 
void shadowircd_cmd_svsmode_chan (char *name, char *mode, char *nick)
 
void shadowircd_cmd_svid_umode (char *nick, time_t ts)
 
void shadowircd_cmd_nc_change (User *u)
 
void shadowircd_cmd_svid_umode2 (User *u, char *ts)
 
void shadowircd_cmd_svid_umode3 (User *u, char *ts)
 
void shadowircd_cmd_chg_nick (char *oldnick, char *newnick)
 
int anope_event_svinfo (char *source, int ac, char **av)
 
int anope_event_pass (char *source, int ac, char **av)
 
void shadowircd_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
 
void shadowircd_cmd_svspart (char *source, char *nick, char *chan)
 
void shadowircd_cmd_swhois (char *source, char *who, char *mask)
 
int anope_event_notice (char *source, int ac, char **av)
 
int anope_event_admin (char *source, int ac, char **av)
 
int anope_event_invite (char *source, int ac, char **av)
 
int anope_event_bmask (char *source, int ac, char **av)
 
int shadowircd_flood_mode_check (char *value)
 
int anope_event_error (char *source, int ac, char **av)
 
void shadowircd_cmd_jupe (char *jserver, char *who, char *reason)
 
int shadowircd_valid_nick (char *nick)
 
int shadowircd_valid_chan (char *chan)
 
void shadowircd_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 753 of file shadowircd.c.

References m_nickcoll(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1623 of file shadowircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1033 of file shadowircd.c.

References find_byuid(), m_away(), MOD_CONT, and user_::nick.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1492 of file shadowircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 634 of file shadowircd.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1154 of file shadowircd.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1671 of file shadowircd.c.

References alog(), debug, and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1628 of file shadowircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1065 of file shadowircd.c.

References do_join(), do_sjoin(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1052 of file shadowircd.c.

References do_kick(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1043 of file shadowircd.c.

References m_kill(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1456 of file shadowircd.c.

References do_cmode(), do_umode2(), find_byuid(), MOD_CONT, and user_::nick.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1076 of file shadowircd.c.

References m_motd(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1618 of file shadowircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1102 of file shadowircd.c.

References do_part(), find_byuid(), MOD_CONT, and user_::nick.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1597 of file shadowircd.c.

References MOD_CONT, sstrdup(), and TS6UPLINK.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1025 of file shadowircd.c.

References MOD_CONT, ServerName, and shadowircd_cmd_pong().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1086 of file shadowircd.c.

References find_byuid(), find_nickuid(), m_privmsg(), MOD_CONT, uid_::nick, and user_::nick.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1177 of file shadowircd.c.

References do_quit(), find_byuid(), MOD_CONT, and user_::nick.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1128 of file shadowircd.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1143 of file shadowircd.c.

References do_server(), findserver_uid(), MOD_CONT, server_::name, and servlist.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 569 of file shadowircd.c.

References do_sjoin(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1169 of file shadowircd.c.

References do_squit(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1591 of file shadowircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

int anope_event_tburst ( char *  source,
int  ac,
char **  av 
)
int anope_event_tmode ( char *  source,
int  ac,
char **  av 
)

Definition at line 1475 of file shadowircd.c.

References do_cmode(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1116 of file shadowircd.c.

References find_nickuid(), m_whois(), MOD_CONT, and uid_::nick.

Referenced by moduleAddIRCDMsgs().

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 1735 of file shadowircd.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_bob(), 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(), shadowircd_cmd_211(), shadowircd_cmd_219(), shadowircd_cmd_242(), shadowircd_cmd_243(), shadowircd_cmd_250(), shadowircd_cmd_307(), shadowircd_cmd_311(), shadowircd_cmd_312(), shadowircd_cmd_317(), shadowircd_cmd_318(), shadowircd_cmd_351(), shadowircd_cmd_372(), shadowircd_cmd_372_error(), shadowircd_cmd_375(), shadowircd_cmd_376(), shadowircd_cmd_391(), shadowircd_cmd_401(), shadowircd_cmd_akill(), shadowircd_cmd_bob(), shadowircd_cmd_bot_chan_mode(), shadowircd_cmd_bot_nick(), shadowircd_cmd_chg_nick(), shadowircd_cmd_connect(), shadowircd_cmd_ctcp(), shadowircd_cmd_eob(), shadowircd_cmd_global(), shadowircd_cmd_global_legacy(), shadowircd_cmd_guest_nick(), shadowircd_cmd_invite(), shadowircd_cmd_join(), shadowircd_cmd_jupe(), shadowircd_cmd_kick(), shadowircd_cmd_mode(), shadowircd_cmd_nc_change(), shadowircd_cmd_nick(), shadowircd_cmd_notice(), shadowircd_cmd_notice2(), shadowircd_cmd_notice_ops(), shadowircd_cmd_part(), shadowircd_cmd_pong(), shadowircd_cmd_privmsg(), shadowircd_cmd_privmsg2(), shadowircd_cmd_quit(), shadowircd_cmd_release_svshold(), shadowircd_cmd_remove_akill(), shadowircd_cmd_serv_notice(), shadowircd_cmd_serv_privmsg(), shadowircd_cmd_sgline(), shadowircd_cmd_sqline(), shadowircd_cmd_squit(), shadowircd_cmd_svid_umode(), shadowircd_cmd_svid_umode2(), shadowircd_cmd_svid_umode3(), shadowircd_cmd_svshold(), shadowircd_cmd_svsjoin(), shadowircd_cmd_svskill(), shadowircd_cmd_svsmode(), shadowircd_cmd_svsmode_chan(), shadowircd_cmd_svsnick(), shadowircd_cmd_svsnoop(), shadowircd_cmd_svso(), shadowircd_cmd_svspart(), shadowircd_cmd_swhois(), shadowircd_cmd_szline(), shadowircd_cmd_topic(), shadowircd_cmd_unban(), shadowircd_cmd_unsgline(), shadowircd_cmd_unsqline(), shadowircd_cmd_unszline(), shadowircd_cmd_vhost_off(), shadowircd_cmd_vhost_on(), shadowircd_flood_mode_check(), shadowircd_set_umode(), shadowircd_valid_chan(), and shadowircd_valid_nick().

Referenced by AnopeInit().

void moduleAddIRCDMsgs ( void  )
void shadowircd_cmd_211 ( char *  buf)

Definition at line 1328 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 1274 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_242 ( char *  buf)

Definition at line 1308 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_243 ( char *  buf)

Definition at line 1318 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_250 ( char *  buf)

Definition at line 1224 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_307 ( char *  buf)

Definition at line 1234 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_311 ( char *  buf)

Definition at line 1244 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_312 ( char *  buf)

Definition at line 1254 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_317 ( char *  buf)

Definition at line 1264 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_318 ( char *  source,
char *  who 
)

Definition at line 1298 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_351 ( char *  source)
void shadowircd_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 1191 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_372_error ( char *  source)

Definition at line 1196 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_375 ( char *  source)

Definition at line 1203 of file shadowircd.c.

References send_cmd(), ServerName, and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_376 ( char *  source)

Definition at line 1209 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 1215 of file shadowircd.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_401 ( char *  source,
char *  who 
)

Definition at line 1289 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

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

Definition at line 909 of file shadowircd.c.

References find_uid(), s_OperServ, send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_bob ( )

Definition at line 994 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

Definition at line 1400 of file shadowircd.c.

References anope_cmd_mode(), ircdvars_::botchanumode, find_uid(), ircd, and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_bot_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)
void shadowircd_cmd_capab ( )

Definition at line 959 of file shadowircd.c.

Referenced by shadowircd_cmd_connect().

void shadowircd_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 1568 of file shadowircd.c.

References find_uid(), uid_::nick, NICKMAX, send_cmd(), and strscpy().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_connect ( int  servernum)
void shadowircd_cmd_ctcp ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 1717 of file shadowircd.c.

References normalizeBuffer(), and send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_eob ( )

Definition at line 1060 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_global ( char *  source,
char *  buf 
)

Definition at line 530 of file shadowircd.c.

References find_uid(), send_cmd(), TS6SID, and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_global_legacy ( char *  source,
char *  fmt 
)

Definition at line 551 of file shadowircd.c.

References find_uid(), send_cmd(), ServerName, TS6SID, and uid_::uid.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1519 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1430 of file shadowircd.c.

References find_uid(), finduser(), send_cmd(), uid_::uid, and user_::uid.

Referenced by moduleAddAnopeCmds().

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

Definition at line 891 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_jupe ( char *  jserver,
char *  who,
char *  reason 
)
void shadowircd_cmd_kick ( char *  source,
char *  chan,
char *  user,
char *  buf 
)

Definition at line 1374 of file shadowircd.c.

References find_uid(), finduser(), send_cmd(), uid_::uid, and user_::uid.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1337 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_nc_change ( User u)

Definition at line 1551 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_nick ( char *  nick,
char *  name,
char *  mode 
)
void shadowircd_cmd_notice ( char *  source,
char *  dest,
char *  buf 
)
void shadowircd_cmd_notice2 ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 483 of file shadowircd.c.

References find_uid(), finduser(), send_cmd(), uid_::uid, and user_::uid.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1391 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_part ( char *  nick,
char *  chan,
char *  buf 
)

Definition at line 1012 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_pass ( char *  pass)

Definition at line 965 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by shadowircd_cmd_connect().

void shadowircd_cmd_pong ( char *  servname,
char *  who 
)

Definition at line 1424 of file shadowircd.c.

References send_cmd(), and TS6SID.

Referenced by anope_event_ping(), and moduleAddAnopeCmds().

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

Definition at line 494 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_privmsg2 ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 508 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds(), and shadowircd_cmd_notice().

void shadowircd_cmd_quit ( char *  source,
char *  buf 
)

Definition at line 1410 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_release_svshold ( char *  nick)

Definition at line 1505 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_remove_akill ( char *  user,
char *  host 
)

Definition at line 855 of file shadowircd.c.

References find_uid(), s_OperServ, send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_serv_notice ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 519 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_serv_privmsg ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 524 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_server ( char *  servname,
int  hop,
char *  descript 
)

Definition at line 971 of file shadowircd.c.

References PROTOCOL_REVISION, and send_cmd().

Referenced by shadowircd_cmd_connect(), and shadowircd_cmd_jupe().

void shadowircd_cmd_sgline ( char *  mask,
char *  reason 
)

Definition at line 850 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_sqline ( char *  mask,
char *  reason 
)

Definition at line 820 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds(), shadowircd_cmd_bot_nick(), and shadowircd_cmd_nick().

void shadowircd_cmd_squit ( char *  servname,
char *  message 
)

Definition at line 1447 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds(), and shadowircd_cmd_jupe().

void shadowircd_cmd_svid_umode ( char *  nick,
time_t  ts 
)

Definition at line 1544 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svid_umode2 ( User u,
char *  ts 
)

Definition at line 1557 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svid_umode3 ( User u,
char *  ts 
)

Definition at line 1562 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svinfo ( )

Definition at line 954 of file shadowircd.c.

References send_cmd().

Referenced by shadowircd_cmd_connect().

void shadowircd_cmd_svsadmin ( char *  server,
int  set 
)

Definition at line 845 of file shadowircd.c.

References shadowircd_cmd_svsnoop().

void shadowircd_cmd_svshold ( char *  nick)

Definition at line 1499 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svsinfo ( )

Definition at line 941 of file shadowircd.c.

void shadowircd_cmd_svsjoin ( char *  source,
char *  nick,
char *  chan,
char *  param 
)

Definition at line 1603 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svskill ( char *  source,
char *  user,
char *  buf 
)

Definition at line 920 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svsmode ( User u,
int  ac,
char **  av 
)

Definition at line 936 of file shadowircd.c.

References send_cmd(), TS6SID, and user_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svsmode_chan ( char *  name,
char *  mode,
char *  nick 
)

Definition at line 1537 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svsnick ( char *  nick,
char *  newnick,
time_t  when 
)

Definition at line 1511 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_svsnoop ( char *  server,
int  set 
)

Definition at line 840 of file shadowircd.c.

Referenced by moduleAddAnopeCmds(), and shadowircd_cmd_svsadmin().

void shadowircd_cmd_svso ( char *  source,
char *  nick,
char *  flag 
)

Definition at line 1525 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1608 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_swhois ( char *  source,
char *  who,
char *  mask 
)

Definition at line 1613 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_szline ( char *  mask,
char *  reason,
char *  whom 
)

Definition at line 835 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1352 of file shadowircd.c.

References send_cmd().

void shadowircd_cmd_topic ( char *  whosets,
char *  chan,
char *  whosetit,
char *  topic,
time_t  when 
)

Definition at line 863 of file shadowircd.c.

References find_uid(), send_cmd(), and uid_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_unban ( char *  name,
char *  nick 
)

Definition at line 1530 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_unsgline ( char *  mask)

Definition at line 825 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_unsqline ( char *  user)

Definition at line 886 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_unszline ( char *  mask)

Definition at line 830 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_vhost_off ( User u)

Definition at line 873 of file shadowircd.c.

References user_::nick, send_cmd(), and user_::uid.

Referenced by moduleAddAnopeCmds().

void shadowircd_cmd_vhost_on ( char *  nick,
char *  vIdent,
char *  vhost 
)

Definition at line 878 of file shadowircd.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

int shadowircd_flood_mode_check ( char *  value)

Definition at line 1666 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

void shadowircd_set_umode ( User user,
int  ac,
char **  av 
)
int shadowircd_valid_chan ( char *  chan)

Definition at line 1710 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

int shadowircd_valid_nick ( char *  nick)

Definition at line 1698 of file shadowircd.c.

Referenced by moduleAddAnopeCmds().

Variable Documentation

CBModeInfo myCbmodeinfos[]
Initial value:
= {
{'c', CMODE_c, 0, NULL, NULL},
{'i', CMODE_i, 0, NULL, NULL},
{'k', CMODE_k, 0, get_key, cs_get_key},
{'m', CMODE_m, 0, NULL, NULL},
{'n', CMODE_n, 0, NULL, NULL},
{'p', CMODE_p, 0, NULL, NULL},
{'r', CMODE_r, 0, NULL, NULL},
{'s', CMODE_s, 0, NULL, NULL},
{'t', CMODE_t, 0, NULL, NULL},
{'z', CMODE_z, 0, NULL, NULL},
{'A', CMODE_A, 0, NULL, NULL},
{'E', CMODE_E, 0, NULL, NULL},
{'F', CMODE_F, 0, NULL, NULL},
{'G', CMODE_G, 0, NULL, NULL},
{'K', CMODE_K, 0, NULL, NULL},
{'L', CMODE_L, 0, NULL, NULL},
{'N', CMODE_N, 0, NULL, NULL},
{'O', CMODE_O, 0, NULL, NULL},
{'P', CMODE_P, 0, NULL, NULL},
{'S', CMODE_S, 0, NULL, NULL},
{'T', CMODE_T, 0, NULL, NULL},
{'V', CMODE_V, 0, NULL, NULL},
{0}
}
#define CMODE_z
Definition: charybdis.h:40
#define CMODE_T
Definition: inspircd12.h:52
#define CBM_MINUS_NO_ARG
Definition: services.h:928
#define CMODE_p
Definition: bahamut.h:47
#define CMODE_F
Definition: charybdis.h:42
E char * get_limit(Channel *chan)
Definition: channels.c:1881
#define CMODE_l
Definition: bahamut.h:51
#define CMODE_N
Definition: inspircd11.h:48
#define CMODE_A
Definition: inspircd11.h:35
#define CMODE_n
Definition: bahamut.h:46
#define CMODE_t
Definition: bahamut.h:49
E char * cs_get_key(ChannelInfo *ci)
Definition: chanserv.c:2447
#define CMODE_V
Definition: inspircd11.h:42
#define CMODE_r
Definition: bahamut.h:53
#define CMODE_O
Definition: bahamut.h:57
#define CMODE_K
Definition: inspircd11.h:37
#define CMODE_G
Definition: inspircd11.h:44
#define CMODE_L
Definition: charybdis.h:43
#define CMODE_m
Definition: bahamut.h:45
#define CMODE_k
Definition: bahamut.h:50
#define CMODE_E
Definition: shadowircd.h:60
E char * cs_get_limit(ChannelInfo *ci)
Definition: chanserv.c:2458
#define CMODE_c
Definition: bahamut.h:54
E char * get_key(Channel *chan)
Definition: channels.c:1874
#define CMODE_i
Definition: bahamut.h:44
#define CMODE_S
Definition: hybrid.h:46
#define CMODE_s
Definition: bahamut.h:48
#define CMODE_P
Definition: charybdis.h:38

Definition at line 387 of file shadowircd.c.

CBMode myCbmodes[128]

Definition at line 321 of file shadowircd.c.

CMMode myCmmodes[128]

Definition at line 271 of file shadowircd.c.

char myCsmodes[128]
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,
'a',
0, 0, 0,
'h',
0, 0, 0, 0,
0,
'v', 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
'o', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 250 of file shadowircd.c.

Referenced by AnopeInit().

CUMode myCumodes[128]

Definition at line 415 of file shadowircd.c.

IRCDVar myIrcd[]

Definition at line 20 of file shadowircd.c.

IRCDCAPAB myIrcdcap[]

Definition at line 120 of file shadowircd.c.

unsigned long umodes[128]

Definition at line 198 of file shadowircd.c.

Referenced by shadowircd_set_umode().