+jilles 2007/02/24 19:34:28 UTC (20070224-3219)
+ Log:
+ Make oper_up() take +i/-i during opering up into account
+ (e.g. no_oper_invis extension, +i in operator::umodes).
+ Remove the hack from no_oper_invis.
+
+
+ Changes: Modified:
+ +0 -2 trunk/extensions/no_oper_invis.c (File Modified)
+ +4 -0 trunk/src/s_user.c (File Modified)
+
+
jilles 2007/02/24 18:35:58 UTC (20070224-3215)
Log:
no_oper_invis: decrement invisible count when clearing
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: s_conf.c 3161 2007-01-25 07:23:01Z nenolod $
+ * $Id: s_conf.c 3223 2007-03-02 17:45:47Z jilles $
*/
#include "stdinc.h"
break;
case TOO_MANY_LOCAL:
+ /* Note that these notices are sent to opers on other
+ * servers also, so even if local opers are allowed to
+ * see the IP, we still cannot send it.
+ */
sendto_realops_snomask(SNO_FULL, L_NETWIDE,
"Too many local connections for %s!%s%s@%s",
source_p->name, IsGotId(source_p) ? "" : "~",
- source_p->username, source_p->sockhost);
+ source_p->username,
+ show_ip(NULL, source_p) && !IsIPSpoof(source_p) ? source_p->sockhost : source_p->host);
ilog(L_FUSER, "Too many local connections from %s!%s%s@%s",
source_p->name, IsGotId(source_p) ? "" : "~",
sendto_realops_snomask(SNO_FULL, L_NETWIDE,
"Too many global connections for %s!%s%s@%s",
source_p->name, IsGotId(source_p) ? "" : "~",
- source_p->username, source_p->sockhost);
+ source_p->username,
+ show_ip(NULL, source_p) && !IsIPSpoof(source_p) ? source_p->sockhost : source_p->host);
ilog(L_FUSER, "Too many global connections from %s!%s%s@%s",
source_p->name, IsGotId(source_p) ? "" : "~",
source_p->username, source_p->sockhost);
sendto_realops_snomask(SNO_FULL, L_NETWIDE,
"Too many user connections for %s!%s%s@%s",
source_p->name, IsGotId(source_p) ? "" : "~",
- source_p->username, source_p->sockhost);
+ source_p->username,
+ show_ip(NULL, source_p) && !IsIPSpoof(source_p) ? source_p->sockhost : source_p->host);
ilog(L_FUSER, "Too many user connections from %s!%s%s@%s",
source_p->name, IsGotId(source_p) ? "" : "~",
source_p->username, source_p->sockhost);