Anope IRC Services  Version 1.8
Functions
send.c File Reference
#include "services.h"
Include dependency graph for send.c:

Go to the source code of this file.

Functions

void send_cmd (const char *source, const char *fmt,...)
 
void vsend_cmd (const char *source, const char *fmt, va_list args)
 
void notice_server (char *source, Server *s, char *fmt,...)
 
void notice_user (char *source, User *u, const char *fmt,...)
 
void notice_list (char *source, char *dest, char **text)
 
void notice_lang (char *source, User *dest, int message,...)
 
void notice_help (char *source, User *dest, int message,...)
 
void notice (char *source, char *dest, const char *fmt,...)
 
void privmsg (char *source, char *dest, const char *fmt,...)
 
void wallops (char *source, const char *fmt,...)
 

Function Documentation

void notice ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)

Send a NOTICE from the given source to the given nick.

Parameters
sourceOrgin of the Message
destDestination of the Message
fmtFormat of the Message
...any number of parameters
Returns
void

Definition at line 274 of file send.c.

References anope_cmd_notice2(), anope_cmd_privmsg2(), BUFSIZE, NI_MSG, NSDefFlags, and vsnprintf().

Referenced by add_session(), catserv(), do_meow(), do_purr(), do_util(), hs_help_activate(), hs_help_reject(), hs_help_request(), hs_help_waiting(), hs_moo_show(), mShowSetting(), my_cs_help_appendtopic(), my_cs_help_enforce(), myFullHelp(), myHostServHelp(), myHostServMooAdminHelp(), myHostServMooHelp(), myHostServMooOperHelp(), myHostServMooRegHelp(), and myHostServMooRootHelp().

void notice_help ( char *  source,
User dest,
int  message,
  ... 
)

Like notice_lang(), but replace S by the source. This is an ugly hack to simplify letting help messages display the name of the pseudoclient that's sending them.

Parameters
sourceOrgin of the Message
uUser Struct
intIndex of the Message
...any number of parameters
Returns
void

Definition at line 220 of file send.c.

References anope_cmd_notice2(), anope_cmd_privmsg2(), BUFSIZE, nickcore_::flags, getstring, user_::na, nickalias_::nc, NI_MSG, user_::nick, NSDefFlags, strnrepl(), strscpy(), UsePrivmsg, and vsnprintf().

Referenced by do_act(), do_help(), do_help_cmd(), do_identify(), do_kickcmd(), do_say(), do_set(), do_unassign(), and myHelpResonse().

void notice_lang ( char *  source,
User dest,
int  message,
  ... 
)

Send a message in the user's selected language to the user using NOTICE.

Parameters
sourceOrgin of the Message
uUser Struct
intIndex of the Message
...any number of parameters
Returns
void

Definition at line 169 of file send.c.

References anope_cmd_notice2(), anope_cmd_privmsg2(), nickcore_::flags, getstring, user_::na, nickalias_::nc, NI_MSG, user_::nick, NSDefFlags, UsePrivmsg, and vsnprintf().

Referenced by access_list(), add_akill(), add_sgline(), add_sqline(), add_szline(), admin_list(), akick_list(), akick_view(), akill_list(), akill_view(), badwords_list(), botserv(), canBanUser(), catserv(), chan_adduser2(), chanserv(), check_memos(), check_valid_admin(), check_valid_op(), collide(), defcon_sendlvls(), display_news(), do_access(), do_act(), do_admin(), do_akick(), do_akill(), do_alist(), do_assign(), do_badwords(), do_ban(), do_bot(), do_botlist(), do_cancel(), do_chankill(), do_chanlist(), do_clear(), do_clearmodes(), do_confirm(), do_cs_kick(), do_cs_topic(), do_defcon(), do_del(), do_delall(), do_deowner(), do_drop(), do_exception(), do_forbid(), do_getemail(), do_getkey(), do_getpass(), do_ghost(), do_glist(), do_group(), do_help_cmd(), do_help_limited(), do_identify(), do_ignorelist(), do_ignoreuser(), do_info(), do_invite(), do_jupe(), do_kickcmd(), do_levels(), do_link(), do_list(), do_listlinks(), do_logout(), do_memocheck(), do_modinfo(), do_modlist(), do_modload(), do_modunload(), do_news(), do_news_add(), do_news_del(), do_news_list(), do_nickupdate(), do_noop(), do_off(), do_on(), do_on_id(), do_oper(), do_operoline(), do_operumodes(), do_os_kick(), do_os_mode(), do_owner(), do_read(), do_recover(), do_register(), do_release(), do_reload(), do_resend(), do_restart(), do_rsend(), do_run_cmd(), do_saset(), do_saset_autoop(), do_saset_display(), do_saset_email(), do_saset_greet(), do_saset_hide(), do_saset_icq(), do_saset_kill(), do_saset_language(), do_saset_msg(), do_saset_noexpire(), do_saset_password(), do_saset_private(), do_saset_secure(), do_saset_url(), do_say(), do_sendall(), do_sendpass(), do_session(), do_set(), do_set_autoop(), do_set_bantype(), do_set_desc(), do_set_display(), do_set_email(), do_set_entrymsg(), do_set_founder(), do_set_greet(), do_set_hide(), do_set_icq(), do_set_keeptopic(), do_set_kill(), do_set_language(), do_set_limit(), do_set_mlock(), do_set_msg(), do_set_noexpire(), do_set_notify(), do_set_opnotice(), do_set_password(), do_set_peace(), do_set_private(), do_set_restricted(), do_set_secure(), do_set_securefounder(), do_set_secureops(), do_set_signkick(), do_set_successor(), do_set_topiclock(), do_set_url(), do_set_xop(), do_setall(), do_sgline(), do_sqline(), do_staff(), do_stats(), do_status(), do_suspend(), do_svsnick(), do_szline(), do_tban(), do_unassign(), do_unban(), do_unlink(), do_unsuspend(), do_update(), do_userlist(), do_util(), do_xop(), exception_add(), exception_list(), exception_view(), handleModuleOperationQueue(), hostserv(), hs_do_activate(), hs_do_request(), hs_help_activate(), hs_help_reject(), hs_help_waiting(), hybrid_cmd_vhost_off(), list_memo(), listOut(), loadModule(), m_privmsg(), MailBegin(), MailRegBegin(), mChanHelp(), memo_send_from(), memoserv(), mNickHelp(), my_cs_appendtopic(), my_cs_enforce(), myAddChanInfo(), myAddNickInfo(), myBotServHelp(), myChanServHelp(), myDoSet(), myHostServHelp(), myMemoServHelp(), myNickServHelp(), myOperServHelp(), nickserv(), oper_list(), opers_list(), plexus_check_valid_halfop(), plexus_check_valid_op(), rageircd_cmd_vhost_off(), read_memo(), rsend_notify(), sgline_list(), sgline_view(), show_list(), showModuleCmdLoaded(), showModuleMsgLoaded(), solidircd_cmd_vhost_off(), sqline_list(), sqline_view(), syntax_error(), szline_list(), szline_view(), ultimate3_cmd_vhost_off(), unloadModule(), unreal_cmd_vhost_off(), validate_user(), viagra_cmd_vhost_off(), and xop_list().

void notice_list ( char *  source,
char *  dest,
char **  text 
)

Send a NULL-terminated array of text as NOTICEs.

Parameters
sourceOrgin of the Message
destDestination of the Notice
textArray of text to send
Returns
void

Definition at line 143 of file send.c.

References anope_cmd_notice2().

void notice_server ( char *  source,
Server s,
char *  fmt,
  ... 
)

Send a server notice

Parameters
sourceOrgin of the Message
sServer Struct
fmtFormat of the Message
...any number of parameters
Returns
void

Definition at line 80 of file send.c.

References anope_cmd_serv_notice(), anope_cmd_serv_privmsg(), BUFSIZE, server_::name, NI_MSG, NSDefFlags, and vsnprintf().

void notice_user ( char *  source,
User u,
const char *  fmt,
  ... 
)

Send a notice to a user

Parameters
sourceOrgin of the Message
uUser Struct
fmtFormat of the Message
...any number of parameters
Returns
void

Definition at line 109 of file send.c.

References anope_cmd_notice2(), anope_cmd_privmsg2(), BUFSIZE, nickcore_::flags, user_::na, nickalias_::nc, NI_MSG, user_::nick, NSDefFlags, UsePrivmsg, and vsnprintf().

void privmsg ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)

Send a PRIVMSG from the given source to the given nick.

Parameters
sourceOrgin of the Message
destDestination of the Message
fmtFormat of the Message
...any number of parameters
Returns
void

Definition at line 303 of file send.c.

References anope_cmd_privmsg2(), BUFSIZE, and vsnprintf().

Referenced by alog().

void send_cmd ( const char *  source,
const char *  fmt,
  ... 
)

Send a command to the server. The two forms here are like printf()/vprintf() and friends.

Parameters
sourceOrgin of the Message (some times NULL)
fmtFormat of the Message
...any number of parameters
Returns
void

Definition at line 26 of file send.c.

References vsend_cmd().

void vsend_cmd ( const char *  source,
const char *  fmt,
va_list  args 
)

actually Send a command to the server.

Parameters
sourceOrgin of the Message (some times NULL)
fmtFormat of the Message
argsList of the arguments
Returns
void

Definition at line 46 of file send.c.

References alog(), BUFSIZE, debug, eventprintf(), servsock, sockprintf(), and vsnprintf().

Referenced by send_cmd().

void wallops ( char *  source,
const char *  fmt,
  ... 
)

Send out a WALLOP, this is here for legacy only, same day we will pull it out

Parameters
sourceOrgin of the Message
fmtFormat of the Message
...any number of parameters
Returns
void

Definition at line 327 of file send.c.

References anope_cmd_global_legacy(), BUFSIZE, and vsnprintf().

Referenced by sighandler().