Disable /nick
Disable /nick
I'm planning to make a an April Fools prank on my users. I made a script that, upon connecting, it changes their nickname. I want to disable the /nick command. Any way to do that? SHUNs are out of the question, because they still need to talk and complain about their randomly picked nickname, lol.
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
Anope, dunno boot other packages, has a feature like that ye:
So I'd say:
Then obviously set channel modes locked
So ur fellow chanops can't turn it off unless they are channel owner.
- sChutt
Code: Select all
N = No Nickname changes are permitted in the channel [o]
Code: Select all
//msg chanserv set mode $chan +N
Code: Select all
//msg chanserv set $chan mlock +N
- sChutt
That should be enough. I can also force the people back in the channel in the same second when they part so they don't have time to change their nickname. And I did plan to force them into #Apris_Fools, lol ><. Thanks for the help.
And btw, +N is an UnrealIRCD channel mode. Just a small correction.
And btw, +N is an UnrealIRCD channel mode. Just a small correction.
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
I can set my bot to do that. It's just a simple line:
Code: Select all
on *:PART:#April_Fools:{ sajoin $nick $chan }
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
Actually there is a way to do this.
Get AngryWolf's cmdshun module (angrywolf.org/cmdshun.tar.gz)
and modify the following lines:
Line 99:
Change it to:
Line 611:
Change it to:
Remove also the following code (lines 784 to 791):
Save and compile the module.
You should now be able to add a cmdshun like that:
This will disable the use of NICK command by regular users.
You can add as many commands as you want, restrict only specific
users etc; read the module's documentation.
Good luck.
Get AngryWolf's cmdshun module (angrywolf.org/cmdshun.tar.gz)
and modify the following lines:
Line 99:
Code: Select all
#define ERR_DISABLED ":%s 517 %s %s :Command disabled (%s)"
Code: Select all
#define ERR_CMDDISABLED ":%s 527 %s %s :Command disabled (%s)"
Code: Select all
sendto_one(sptr, ERR_DISABLED, me.name, sptr->name,
Code: Select all
sendto_one(sptr, ERR_CMDDISABLED, me.name, sptr->name,
Code: Select all
for (p = hostmask; *p; p++)
if (*p != '*' && *p != '.' && *p != '?')
i++;
if (i < 4)
{
sendnotice(sptr, "*** [error] Too broad mask");
return 0;
}
You should now be able to add a cmdshun like that:
Code: Select all
/CMDSHUN +*@* NICK 0 Reason: None of your business
You can add as many commands as you want, restrict only specific
users etc; read the module's documentation.
Good luck.