Functions | Variables

viagra.c File Reference

#include "services.h"
#include "pseudo.h"
#include "viagra.h"
#include "version.h"
Include dependency graph for viagra.c:

Go to the source code of this file.

Functions

void viagra_set_umode (User *user, int ac, char **av)
void viagra_cmd_bot_unban (ChannelInfo *ci, char *nick)
int anope_event_setname (char *source, int ac, char **av)
int anope_event_sjoin (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_vs (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)
int anope_event_notice (char *source, int ac, char **av)
int anope_event_pass (char *source, int ac, char **av)
int anope_event_svinfo (char *source, int ac, char **av)
int anope_event_gnotice (char *source, int ac, char **av)
int anope_event_sqline (char *source, int ac, char **av)
int anope_event_burst (char *source, int ac, char **av)
int anope_event_tctrl (char *source, int ac, char **av)
int anope_event_error (char *source, int ac, char **av)
void moduleAddIRCDMsgs (void)
void viagra_cmd_sqline (char *mask, char *reason)
void viagra_cmd_unsgline (char *mask)
void viagra_cmd_unszline (char *mask)
void viagra_cmd_szline (char *mask, char *reason, char *whom)
void viagra_cmd_svsnoop (char *server, int set)
void viagra_cmd_svsadmin (char *server, int set)
void viagra_cmd_sgline (char *mask, char *reason)
void viagra_cmd_remove_akill (char *user, char *host)
void viagra_cmd_part (char *nick, char *chan, char *buf)
void viagra_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
void viagra_cmd_vhost_off (User *u)
void viagra_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
void viagra_cmd_unsqline (char *user)
void viagra_cmd_join (char *user, char *channel, time_t chantime)
void viagra_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
void viagra_cmd_svskill (char *source, char *user, char *buf)
void viagra_cmd_mode (char *source, char *dest, char *buf)
void viagra_cmd_quit (char *source, char *buf)
int anope_event_away (char *source, int ac, char **av)
int anope_event_ping (char *source, int ac, char **av)
void viagra_cmd_svsmode (User *u, int ac, char **av)
void viagra_cmd_squit (char *servname, char *message)
void viagra_cmd_pong (char *servname, char *who)
void viagra_cmd_svinfo ()
void viagra_cmd_capab ()
void viagra_cmd_pass (char *pass)
void viagra_cmd_server (char *servname, int hop, char *descript)
void viagra_cmd_burst ()
void viagra_cmd_connect (int servernum)
void viagra_cmd_bob ()
int anope_event_os (char *source, int ac, char **av)
int anope_event_ns (char *source, int ac, char **av)
int anope_event_ms (char *source, int ac, char **av)
int anope_event_hs (char *source, int ac, char **av)
int anope_event_cs (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)
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)
void viagra_cmd_notice_ops (char *source, char *dest, char *buf)
void viagra_cmd_notice (char *source, char *dest, char *buf)
void viagra_cmd_notice2 (char *source, char *dest, char *msg)
void viagra_cmd_privmsg (char *source, char *dest, char *buf)
void viagra_cmd_privmsg2 (char *source, char *dest, char *msg)
void viagra_cmd_serv_notice (char *source, char *dest, char *msg)
void viagra_cmd_serv_privmsg (char *source, char *dest, char *msg)
void viagra_cmd_global (char *source, char *buf)
void viagra_cmd_391 (char *source, char *timestr)
void viagra_cmd_250 (char *buf)
void viagra_cmd_307 (char *buf)
void viagra_cmd_311 (char *buf)
void viagra_cmd_312 (char *buf)
void viagra_cmd_317 (char *buf)
void viagra_cmd_219 (char *source, char *letter)
void viagra_cmd_401 (char *source, char *who)
void viagra_cmd_318 (char *source, char *who)
void viagra_cmd_242 (char *buf)
void viagra_cmd_243 (char *buf)
void viagra_cmd_211 (char *buf)
void viagra_cmd_351 (char *source)
void viagra_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
void viagra_cmd_kick (char *source, char *chan, char *user, char *buf)
void viagra_cmd_nick (char *nick, char *name, char *modes)
void viagra_cmd_372 (char *source, char *msg)
void viagra_cmd_372_error (char *source)
void viagra_cmd_375 (char *source)
void viagra_cmd_376 (char *source)
void viagra_cmd_invite (char *source, char *chan, char *nick)
void viagra_cmd_bot_chan_mode (char *nick, char *chan)
int anope_event_capab (char *source, int ac, char **av)
void viagra_cmd_svshold (char *nick)
void viagra_cmd_release_svshold (char *nick)
void viagra_cmd_svsnick (char *source, char *guest, time_t when)
void viagra_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
void viagra_cmd_svso (char *source, char *nick, char *flag)
void viagra_cmd_unban (char *name, char *nick)
void viagra_cmd_svsmode_chan (char *name, char *mode, char *nick)
void viagra_cmd_svid_umode (char *nick, time_t ts)
void viagra_cmd_nc_change (User *u)
void viagra_cmd_svid_umode2 (User *u, char *ts)
void viagra_cmd_svid_umode3 (User *u, char *ts)
void viagra_cmd_chg_nick (char *oldnick, char *newnick)
void viagra_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
void viagra_cmd_svspart (char *source, char *nick, char *chan)
void viagra_cmd_swhois (char *source, char *who, char *mask)
int viagra_flood_mode_check (char *value)
int anope_event_rehash (char *source, int ac, char **av)
int anope_event_admin (char *source, int ac, char **av)
int anope_event_snotice (char *source, int ac, char **av)
int anope_event_invite (char *source, int ac, char **av)
void viagra_cmd_eob ()
void viagra_cmd_jupe (char *jserver, char *who, char *reason)
void viagra_cmd_global_legacy (char *source, char *fmt)
int viagra_valid_nick (char *nick)
int viagra_valid_chan (char *chan)
void viagra_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 598 of file viagra.c.

References m_nickcoll().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1532 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 898 of file viagra.c.

References m_away().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 637 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1398 of file viagra.c.

References capab_parse().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 579 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 498 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 460 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1029 of file viagra.c.

References m_privmsg(), and s_ChanServ.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 665 of file viagra.c.

References alog(), and debug.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 627 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1020 of file viagra.c.

References m_privmsg(), and s_HostServ.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1542 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1126 of file viagra.c.

References do_join().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1118 of file viagra.c.

References do_kick().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1109 of file viagra.c.

References m_kill().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1096 of file viagra.c.

References do_cmode(), and do_umode().

Referenced by anope_event_fmode(), anope_event_opertype(), and moduleAddIRCDMsgs().

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

Definition at line 1134 of file viagra.c.

References m_motd().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1011 of file viagra.c.

References m_privmsg(), and s_MemoServ.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 541 of file viagra.c.

References anope_set_umode(), and do_nick().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 607 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1002 of file viagra.c.

References m_privmsg(), and s_NickServ.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 993 of file viagra.c.

References m_privmsg(), and s_OperServ.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1055 of file viagra.c.

References do_part().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 612 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 907 of file viagra.c.

References ServerName, and viagra_cmd_pong().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1047 of file viagra.c.

References m_privmsg().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1087 of file viagra.c.

References do_quit().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1527 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1037 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 522 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 479 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 435 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 454 of file viagra.c.

References do_sjoin().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1537 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 632 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1079 of file viagra.c.

References do_squit().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 617 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 655 of file viagra.c.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1071 of file viagra.c.

References do_topic().

Referenced by moduleAddIRCDMsgs().

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

Definition at line 559 of file viagra.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1063 of file viagra.c.

References m_whois().

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 1611 of file viagra.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(), viagra_cmd_211(), viagra_cmd_219(), viagra_cmd_242(), viagra_cmd_243(), viagra_cmd_250(), viagra_cmd_307(), viagra_cmd_311(), viagra_cmd_312(), viagra_cmd_317(), viagra_cmd_318(), viagra_cmd_351(), viagra_cmd_372(), viagra_cmd_372_error(), viagra_cmd_375(), viagra_cmd_376(), viagra_cmd_391(), viagra_cmd_401(), viagra_cmd_akill(), viagra_cmd_bob(), viagra_cmd_bot_chan_mode(), viagra_cmd_bot_nick(), viagra_cmd_chg_nick(), viagra_cmd_connect(), viagra_cmd_ctcp(), viagra_cmd_eob(), viagra_cmd_global(), viagra_cmd_global_legacy(), viagra_cmd_guest_nick(), viagra_cmd_invite(), viagra_cmd_join(), viagra_cmd_jupe(), viagra_cmd_kick(), viagra_cmd_mode(), viagra_cmd_nc_change(), viagra_cmd_nick(), viagra_cmd_notice(), viagra_cmd_notice2(), viagra_cmd_notice_ops(), viagra_cmd_part(), viagra_cmd_pong(), viagra_cmd_privmsg(), viagra_cmd_privmsg2(), viagra_cmd_quit(), viagra_cmd_release_svshold(), viagra_cmd_remove_akill(), viagra_cmd_serv_notice(), viagra_cmd_serv_privmsg(), viagra_cmd_sgline(), viagra_cmd_sqline(), viagra_cmd_squit(), viagra_cmd_svid_umode(), viagra_cmd_svid_umode2(), viagra_cmd_svid_umode3(), viagra_cmd_svshold(), viagra_cmd_svsjoin(), viagra_cmd_svskill(), viagra_cmd_svsmode(), viagra_cmd_svsmode_chan(), viagra_cmd_svsnick(), viagra_cmd_svsnoop(), viagra_cmd_svso(), viagra_cmd_svspart(), viagra_cmd_swhois(), viagra_cmd_szline(), viagra_cmd_topic(), viagra_cmd_unban(), viagra_cmd_unsgline(), viagra_cmd_unsqline(), viagra_cmd_unszline(), viagra_cmd_vhost_off(), viagra_cmd_vhost_on(), viagra_flood_mode_check(), viagra_set_umode(), viagra_valid_chan(), and viagra_valid_nick().

void moduleAddIRCDMsgs ( void   ) 
void viagra_cmd_211 ( char *  buf  ) 

Definition at line 1318 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 1264 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_242 ( char *  buf  ) 

Definition at line 1298 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_243 ( char *  buf  ) 

Definition at line 1308 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_250 ( char *  buf  ) 

Definition at line 1214 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_307 ( char *  buf  ) 

Definition at line 1224 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_311 ( char *  buf  ) 

Definition at line 1234 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_312 ( char *  buf  ) 

Definition at line 1244 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_317 ( char *  buf  ) 

Definition at line 1254 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_318 ( char *  source,
char *  who 
)

Definition at line 1288 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_351 ( char *  source  ) 
void viagra_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 1361 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_372_error ( char *  source  ) 

Definition at line 1366 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_375 ( char *  source  ) 

Definition at line 1372 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_376 ( char *  source  ) 

Definition at line 1378 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 1205 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_401 ( char *  source,
char *  who 
)

Definition at line 1279 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

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

Definition at line 848 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_bob (  ) 

Definition at line 987 of file viagra.c.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

Definition at line 1393 of file viagra.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 1334 of file viagra.c.

References EnforceQlinedNick(), s_BotServ, send_cmd(), ServerName, and viagra_cmd_sqline().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_bot_unban ( ChannelInfo ci,
char *  nick 
)

Definition at line 430 of file viagra.c.

References chaninfo_::name, send_cmd(), and ServerName.

void viagra_cmd_burst (  ) 

Definition at line 964 of file viagra.c.

References send_cmd().

Referenced by viagra_cmd_connect().

void viagra_cmd_capab (  ) 

Definition at line 947 of file viagra.c.

References send_cmd().

Referenced by viagra_cmd_connect().

void viagra_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 1486 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_connect ( int  servernum  ) 
void viagra_cmd_ctcp ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 1592 of file viagra.c.

References normalizeBuffer(), and send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_eob (  ) 

Definition at line 1547 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_global ( char *  source,
char *  buf 
)

Definition at line 1195 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_global_legacy ( char *  source,
char *  fmt 
)

Definition at line 1566 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1425 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1384 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 833 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_jupe ( char *  jserver,
char *  who,
char *  reason 
)
void viagra_cmd_kick ( char *  source,
char *  chan,
char *  user,
char *  buf 
)

Definition at line 1343 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 871 of file viagra.c.

References ircdcap, send_cmd(), ircdcapab_::tsmode, and uplink_capab.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_nc_change ( User u  ) 

Definition at line 1465 of file viagra.c.

References common_svsmode().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_nick ( char *  nick,
char *  name,
char *  modes 
)
void viagra_cmd_notice ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 1152 of file viagra.c.

References NI_MSG, NSDefFlags, send_cmd(), and viagra_cmd_privmsg2().

Referenced by moduleAddAnopeCmds().

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

Definition at line 1165 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 1144 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 793 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_pass ( char *  pass  ) 

Definition at line 953 of file viagra.c.

References send_cmd().

Referenced by viagra_cmd_connect().

void viagra_cmd_pong ( char *  servname,
char *  who 
)

Definition at line 928 of file viagra.c.

References send_cmd().

Referenced by anope_event_ping(), and moduleAddAnopeCmds().

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

Definition at line 1170 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 1179 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds(), and viagra_cmd_notice().

void viagra_cmd_quit ( char *  source,
char *  buf 
)

Definition at line 889 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_release_svshold ( char *  nick  ) 

Definition at line 1411 of file viagra.c.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_remove_akill ( char *  user,
char *  host 
)

Definition at line 787 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 1184 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 1189 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 959 of file viagra.c.

References send_cmd().

Referenced by viagra_cmd_connect(), and viagra_cmd_jupe().

void viagra_cmd_sgline ( char *  mask,
char *  reason 
)

Definition at line 782 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_sqline ( char *  mask,
char *  reason 
)

Definition at line 748 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds(), viagra_cmd_bot_nick(), and viagra_cmd_nick().

void viagra_cmd_squit ( char *  servname,
char *  message 
)

Definition at line 922 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds(), and viagra_cmd_jupe().

void viagra_cmd_svid_umode ( char *  nick,
time_t  ts 
)

Definition at line 1457 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_svid_umode2 ( User u,
char *  ts 
)

Definition at line 1471 of file viagra.c.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_svid_umode3 ( User u,
char *  ts 
)

Definition at line 1476 of file viagra.c.

References common_svsmode(), user_::svid, and user_::timestamp.

Referenced by moduleAddAnopeCmds().

void viagra_cmd_svinfo (  ) 

Definition at line 941 of file viagra.c.

References send_cmd().

Referenced by viagra_cmd_connect().

void viagra_cmd_svsadmin ( char *  server,
int  set 
)

Definition at line 777 of file viagra.c.

References viagra_cmd_svsnoop().

void viagra_cmd_svshold ( char *  nick  ) 

Definition at line 1405 of file viagra.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1501 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 863 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 915 of file viagra.c.

References user_::nick, send_cmd(), ServerName, and user_::timestamp.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1446 of file viagra.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds(), and viagra_cmd_unban().

void viagra_cmd_svsnick ( char *  source,
char *  guest,
time_t  when 
)

Definition at line 1417 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_svsnoop ( char *  server,
int  set 
)

Definition at line 772 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds(), and viagra_cmd_svsadmin().

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

Definition at line 1432 of file viagra.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1512 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 1517 of file viagra.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 767 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 806 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_unban ( char *  name,
char *  nick 
)

Definition at line 1439 of file viagra.c.

References viagra_cmd_svsmode_chan().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_unsgline ( char *  mask  ) 

Definition at line 757 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_unsqline ( char *  user  ) 

Definition at line 828 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_unszline ( char *  mask  ) 

Definition at line 762 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void viagra_cmd_vhost_off ( User u  ) 

Definition at line 813 of file viagra.c.

References common_svsmode(), ircd, user_::nick, notice_lang(), s_HostServ, and ircdvars_::vhostchar.

Referenced by moduleAddAnopeCmds().

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

Definition at line 819 of file viagra.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

int viagra_flood_mode_check ( char *  value  ) 

Definition at line 1522 of file viagra.c.

Referenced by moduleAddAnopeCmds().

void viagra_set_umode ( User user,
int  ac,
char **  av 
)
int viagra_valid_chan ( char *  chan  ) 

Definition at line 1585 of file viagra.c.

Referenced by moduleAddAnopeCmds().

int viagra_valid_nick ( char *  nick  ) 

Definition at line 1575 of file viagra.c.

Referenced by moduleAddAnopeCmds().


Variable Documentation

Initial value:
 {
    {'c', CMODE_c, 0, NULL, NULL},
    {'i', CMODE_i, 0, NULL, NULL},
    {'k', CMODE_k, 0, get_key, cs_get_key},
    {'l', CMODE_l, CBM_MINUS_NO_ARG, get_limit, cs_get_limit},
    {'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},
    {'x', CMODE_x, 0, NULL, NULL},
    {'H', CMODE_H, 0, NULL, NULL},
    {'M', CMODE_M, 0, NULL, NULL},
    {'N', CMODE_N, 0, NULL, NULL},
    {'O', CMODE_O, 0, NULL, NULL},
    {'P', CMODE_P, 0, NULL, NULL},
    {'R', CMODE_R, 0, NULL, NULL},
    {'S', CMODE_S, 0, NULL, NULL},
    {0}
}

Definition at line 360 of file viagra.c.

Definition at line 294 of file viagra.c.

Initial value:
 {
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL},
    {NULL},
    {add_ban, del_ban},
    {NULL},
    {NULL},
    {add_exception, del_exception},
    {NULL},
    {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL},
    {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}, {NULL}
}

Definition at line 266 of file viagra.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,
    0,
    0, 0, 0,
    'h',                        
    0,                          
    0, 0, 0,
    'q',

    '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, 'a', 0
}

Definition at line 244 of file viagra.c.

Definition at line 382 of file viagra.c.

Definition at line 19 of file viagra.c.

Definition at line 119 of file viagra.c.

unsigned long umodes[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, 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, UMODE_A, 0, UMODE_C, 0, 0, 0, 0, 0, UMODE_I, 0, 0, 0, 0, UMODE_N,
    UMODE_O,
    0,
    UMODE_Q,
    UMODE_R,
    UMODE_S, UMODE_T, 0, 0, 0, 0, 0,
    0,
    0, 0, 0, 0, 0,
    0, UMODE_a, UMODE_b, UMODE_c, UMODE_d, UMODE_e, UMODE_f,
    UMODE_g,
    UMODE_h, UMODE_i, 0, 0, 0, 0, UMODE_n, UMODE_o,
    0,
    0, UMODE_r, UMODE_s, 0, 0, 0, UMODE_w,
    UMODE_x,
    0,
    0,
    0, 0, 0, 0, 0
}

Definition at line 219 of file viagra.c.