From adced2cf589de7c667fe09e7ff89eb71d46b63ea Mon Sep 17 00:00:00 2001 From: stskeeps Date: Mon, 29 May 2000 15:09:01 +0000 Subject: [PATCH] Made MODE_X and the family show mode changes, and made STRIPBADWORDS standard --- Changes | 3 ++- include/config.h | 5 +++++ networks/unrealircd.conf | 2 +- src/s_user.c | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index a4559a6f7..9cb990748 100644 --- a/Changes +++ b/Changes @@ -328,4 +328,5 @@ k/* overwriting it ... - Created /shun, /gline style. /shun +user@host time reason /shun -user@host will extend it so you can /shun +nick later -- A little anti-0 fix in channel.c \ No newline at end of file +- A little anti-0 fix in channel.c +- Made MODE_X, MODE_I etc show mode change to user diff --git a/include/config.h b/include/config.h index 6c9147394..51daebd04 100644 --- a/include/config.h +++ b/include/config.h @@ -93,11 +93,16 @@ */ #define ADMINCHAT 1 + /* Remote rehash */ #define REMOTE_REHASH +/* + Stripbadwords patch +*/ +#define STRIPBADWORDS /* Ident checking #define this to disable ident checking diff --git a/networks/unrealircd.conf b/networks/unrealircd.conf index 83edb90e9..1b0593dfa 100644 --- a/networks/unrealircd.conf +++ b/networks/unrealircd.conf @@ -22,7 +22,7 @@ Set MODE_X ..............: 1 # 1 = Yes 0 = No Set MODE_I ..............: 0 -# Auto +X users when they connect? This can help as a new REMOVE_ADVERTISE +# Auto +G users when they connect? This can help as a new REMOVE_ADVERTISE Set MODE_STRIPWORDS .....: 0 # If compiled on a halfhub network this will upgrade it to be a real hub diff --git a/src/s_user.c b/src/s_user.c index b7d5112be..7201e7d5a 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -948,6 +948,8 @@ static int register_user(cptr, sptr, nick, username, umode, virthost) sendto_one(nsptr, ":%s PRIVMSG %s@%s :IDENTIFY %s", sptr->name, NickServ, SERVICES_NAME, sptr->passwd); /* Force the user to join the given chans -- codemastr */ + sendto_one(cptr,":%s MODE %s :%s", cptr->name, cptr->name, buf); + if (strcmp(AUTO_JOIN_CHANS, "0")) { char *chans[3] = {