How to disable this command ??

These are old archives. They are kept for historic purposes only.
Post Reply
Maybe
Posts: 8
Joined: Sun Mar 27, 2005 7:09 am

How to disable this command ??

Post by Maybe »

how i can disable this command ???

/sethost, /chghost, /chgident, /chgname. /setident

thanks
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post 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.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

If you are on *nix:

./Config -advanced
Tell it not to allow those commands :)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Never heard of that before :|
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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 :P .
pete212
Posts: 80
Joined: Mon Jul 12, 2004 1:56 am

Post by pete212 »

when this is used are they still enabled for IRCops?
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
...
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Maybe
Posts: 8
Joined: Sun Mar 27, 2005 7:09 am

thx

Post by Maybe »

ok thanks for all question
Post Reply