#include "services.h"
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,...) |
| void notice | ( | char * | source, | |
| char * | dest, | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
Send a NOTICE from the given source to the given nick.
| source | Orgin of the Message | |
| dest | Destination of the Message | |
| fmt | Format of the Message | |
| ... | any number of parameters |
Definition at line 275 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(), 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.
| source | Orgin of the Message | |
| u | User Struct | |
| int | Index of the Message | |
| ... | any number of parameters |
Definition at line 221 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_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.
| source | Orgin of the Message | |
| u | User Struct | |
| int | Index of the Message | |
| ... | any number of parameters |
Definition at line 170 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_request(), hs_help_activate(), hs_help_reject(), hs_help_waiting(), list_memo(), listOut(), loadModule(), m_privmsg(), MailBegin(), MailRegBegin(), mChanHelp(), memo_send(), 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.
| source | Orgin of the Message | |
| dest | Destination of the Notice | |
| text | Array of text to send |
Definition at line 144 of file send.c.
References anope_cmd_notice2().
| void notice_server | ( | char * | source, | |
| Server * | s, | |||
| char * | fmt, | |||
| ... | ||||
| ) |
Send a server notice
| source | Orgin of the Message | |
| s | Server Struct | |
| fmt | Format of the Message | |
| ... | any number of parameters |
Definition at line 81 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
| source | Orgin of the Message | |
| u | User Struct | |
| fmt | Format of the Message | |
| ... | any number of parameters |
Definition at line 110 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.
| source | Orgin of the Message | |
| dest | Destination of the Message | |
| fmt | Format of the Message | |
| ... | any number of parameters |
Definition at line 304 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.
| source | Orgin of the Message (some times NULL) | |
| fmt | Format of the Message | |
| ... | any number of parameters |
Definition at line 27 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.
| source | Orgin of the Message (some times NULL) | |
| fmt | Format of the Message | |
| args | List of the arguments |
Definition at line 47 of file send.c.
References alog(), BUFSIZE, debug, eventprintf(), servsock, sockprintf(), and vsnprintf.
| void wallops | ( | char * | source, | |
| const char * | fmt, | |||
| ... | ||||
| ) |
Send out a WALLOP, this is here for legacy only, same day we will pull it out
| source | Orgin of the Message | |
| fmt | Format of the Message | |
| ... | any number of parameters |
Definition at line 328 of file send.c.
References anope_cmd_global_legacy(), BUFSIZE, and vsnprintf.
Referenced by sighandler().
1.5.7.1