1 when autoapplying spoof blocks notify user what their hidden host is (same as when the host is hidden normally)
3 send "Using Spoof block privilege" as NOTICE AUTH, preventing sending any other numeric reples before the 001 002 etc replies
4 send RPL_HOSTHIDDEN after all connect stuff, same place this reply is sent in case IAUTH set the user +rx
5 commented out numeric reply RPL_USINGSLINE, no longer used
7 diff -r 2c8273f25f9a include/numeric.h
8 --- a/include/numeric.h Thu Mar 18 11:04:00 2010 +0100
9 +++ b/include/numeric.h Thu Mar 18 11:53:35 2010 +0100
11 /* RPL_NOUSERS 395 Dalnet/EFnet/IRCnet */
12 #define RPL_HOSTHIDDEN 396 /* UMODE +x completed succesfuly */
13 #define RPL_STATSSLINE 398 /* QuakeNet extension -froo */
14 -#define RPL_USINGSLINE 399 /* QuakeNet extension -froo */
15 +/* RPL_USINGSLINE 399 QuakeNet extension -froo */
18 * Errors are in the range from 400-599 currently and are grouped by what
19 diff -r 2c8273f25f9a ircd/s_conf.c
20 --- a/ircd/s_conf.c Thu Mar 18 11:04:00 2010 +0100
21 +++ b/ircd/s_conf.c Thu Mar 18 11:53:35 2010 +0100
25 ircd_strncpy(cli_user(cptr)->host, hostonly, HOSTLEN);
26 - log_write(LS_USER, L_INFO, LOG_NOSNOTICE, "S-Line (%s@%s) by (%#R)",
27 + log_write(LS_USER, L_INFO, LOG_NOSNOTICE, "Spoofhost (%s@%s) by (%#R)",
28 cli_user(cptr)->username, hostonly, cptr);
33 diff -r 2c8273f25f9a ircd/s_err.c
34 --- a/ircd/s_err.c Thu Mar 18 11:04:00 2010 +0100
35 +++ b/ircd/s_err.c Thu Mar 18 11:53:35 2010 +0100
38 { RPL_STATSSLINE, "%d %s %s %s %s", "398" },
40 - { RPL_USINGSLINE, ":Using S-line privilege", "399" },
45 diff -r 2c8273f25f9a ircd/s_user.c
46 --- a/ircd/s_user.c Thu Mar 18 11:04:00 2010 +0100
47 +++ b/ircd/s_user.c Thu Mar 18 11:53:35 2010 +0100
50 if (feature_bool(FEAT_AUTOINVISIBLE))
54 + /* apply auto sethost if needed */
55 if(feature_bool(FEAT_SETHOST_AUTO)) {
56 - if (conf_check_slines(sptr)) {
57 - send_reply(sptr, RPL_USINGSLINE);
60 + if (conf_check_slines(sptr))
61 + sendrawto_one(sptr, "NOTICE AUTH :*** Using Spoof block privilege");
67 if (HasHiddenHost(sptr))
68 hide_hostmask(sptr, FLAG_HIDDENHOST);
69 + /* my user has sethost, inform them of their hidden host from auto applied sethost */
70 + if (HasSetHost(sptr) && MyConnect(sptr))
71 + send_reply(sptr, RPL_HOSTHIDDEN, cli_user(sptr)->host);
72 if (IsInvisible(sptr))
73 ++UserStats.inv_clients;