Page 1 of 1

disable /setname | realname change

Posted: Sun Apr 25, 2004 7:46 pm
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

Posted: Sun Apr 25, 2004 7:49 pm
by aquanight
IIRC, /setname is oper only.

Posted: Sun Apr 25, 2004 8:15 pm
by dvzion
nope. That's why I ask :)

Posted: Sun Apr 25, 2004 10:42 pm
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.

Posted: Mon Apr 26, 2004 11:27 am
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!