Page 1 of 1
How to disable this command ??
Posted: Sun Mar 27, 2005 7:22 am
by Maybe
how i can disable this command ???
/sethost, /chghost, /chgident, /chgname. /setident
thanks
Posted: Sun Mar 27, 2005 7:50 am
by w00t
Fairly easily,
Don't load commands.so/commands.dll,
instead load the .so/dll of every command that you DO want
(ie everything there EXCEPT m_chg* and m_set*
Beware though, i think disabling sethost might stop hostserv working.
Posted: Sun Mar 27, 2005 8:51 am
by Stealth
If you are on *nix:
./Config -advanced
Tell it not to allow those commands

Posted: Sun Mar 27, 2005 9:07 am
by w00t
Never heard of that before

Posted: Mon Mar 28, 2005 3:01 am
by aquanight
w00t wrote:Never heard of that before

#define NO_USERMOD (IIRC) - this used to be in include/config.h until the advance ./Config was added.
However, there is another way to disable it, which is probably better because you can flip it on on-the-fly without recompiling. Read the documentation about
set::allow-userhost-change - it affects normal users and IRCops, so when set to never, neither users nor ircops can use sethost, setident, chghost, or chgident. (chgname might still be enabled) The only downside to this approach is you'd disable host cloaking if you don't have x in your set::modes-on-connect, etc.
I think either way won't break things like HostServ, however, that rely on CHGHOST to set vhosts, etc. The module way would most certainly break HostServ however

.
Posted: Mon Mar 28, 2005 8:27 pm
by pete212
when this is used are they still enabled for IRCops?
Posted: Mon Mar 28, 2005 9:26 pm
by Dukat
aquanight wrote:it affects normal users and IRCops, so when set to never, neither users nor ircops can use sethost, setident, chghost, or chgident.
...
thx
Posted: Sat Apr 16, 2005 7:45 pm
by Maybe
ok thanks for all question