disable /setname | realname change

The UnrealIRCd team does not officially provide support for any services packages that you may be using or want to use. This forum is provided so the community can help each other with services issues.

Moderator: Supporters

Locked
dvzion
Posts: 12
Joined: Sat Apr 24, 2004 10:48 pm

disable /setname | realname change

Post by dvzion »

Hi.

I am trying to disable the /setname command. The users on our irc are
using a custom clients and the real name is made automatically.

This has to remain untouchable by the users - hence the /setname should not change a thing.

Is there any way to make this happen? I haven't found anything in Unreal and probably this can be handled by a service / bot better.

Thanks
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

IIRC, /setname is oper only.
dvzion
Posts: 12
Joined: Sat Apr 24, 2004 10:48 pm

Post by dvzion »

nope. That's why I ask :)
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

The nice thing about modules is, you can get rid of commands you don't want. In your unrealircd.conf you have:

loadmodule "src/modules/commands.so";

right?

Ok, here is what you do:
mv src/modules/m_setname.so src/modules/m_setname.so.disabled

Then change the loadmodule line to read:
loadmodule "src/modules/m_*.so";

And then /rehash. Magically, /setname is gone since it is no longer loaded into the IRCd.
-- codemastr
dvzion
Posts: 12
Joined: Sat Apr 24, 2004 10:48 pm

Post by dvzion »

Thanks! This is way better then having to hack the l_commands.c to comment out the setname module.


It is incredibly simply to add, get commands out of Unreal IRC. Nice work!
Locked