Page 1 of 2
Disable /nick
Posted: Wed Mar 29, 2006 1:59 pm
by Grunt
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.
Posted: Wed Mar 29, 2006 4:35 pm
by sChutt
Anope, dunno boot other packages, has a feature like that ye:
Code: Select all
N = No Nickname changes are permitted in the channel [o]
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
Posted: Wed Mar 29, 2006 6:10 pm
by Bricker
um, thats a pretty bad way to do it, all a user has to do is /part change their nick and come back. you might be able to write a quick module for it though
Posted: Wed Mar 29, 2006 6:22 pm
by sChutt
And obviously we can all code a lil summat like that.... NOT.
Some ppl, like myself without shame, have to rely on what they know from the packages they know, but that dun stop me from helpin out with the settings I know... :p
- sChutt
Posted: Wed Mar 29, 2006 8:19 pm
by Grunt
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.
Posted: Wed Mar 29, 2006 9:27 pm
by Jason
As for locking users into a channel, I reccommend angrywolf's courtroom lite module. It creates a mode +U, settable by admins, that rejoins a user on part.
Posted: Thu Mar 30, 2006 6:01 am
by Grunt
I can set my bot to do that. It's just a simple line:
Code: Select all
on *:PART:#April_Fools:{ sajoin $nick $chan }
Posted: Thu Mar 30, 2006 7:24 am
by sChutt
Grunt wrote:And btw, +N is an UnrealIRCD channel mode. Just a small correction.
My bad.
- sChutt
Posted: Fri Mar 31, 2006 2:03 am
by Stealth
To disable /nick:
Unload commands.so
rename m_nick.so to dontload.so
add loadmodule m_*.so;
DONE!
Or just make a module that overrides the NICK command and denies it to connected users
Posted: Fri Mar 31, 2006 5:31 am
by Stskeeps
P r o b a b l y won't work ..

You're much better off making a module for it
Posted: Sun Apr 02, 2006 2:19 am
by Jason
Stealth: Without NICK, people cant connect to the server, as NICK is critical to the login process.
Posted: Sun Apr 02, 2006 7:01 am
by Stealth
Like I told Stskeeps: He only asked how to disable it, I told him how. Side affects are his problem.
There is a whole lot more than just being unable to connect...
Posted: Sun Apr 02, 2006 10:27 am
by Grunt
No need for "zomfg server chrash". I dit it my way, with a mIRC script and a +N channel. Simple, and effective.
(Funny too.)
Posted: Sun Apr 02, 2006 1:23 pm
by sigchill
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:
Code: Select all
#define ERR_DISABLED ":%s 517 %s %s :Command disabled (%s)"
Change it to:
Code: Select all
#define ERR_CMDDISABLED ":%s 527 %s %s :Command disabled (%s)"
Line 611:
Code: Select all
sendto_one(sptr, ERR_DISABLED, me.name, sptr->name,
Change it to:
Code: Select all
sendto_one(sptr, ERR_CMDDISABLED, me.name, sptr->name,
Remove also the following code (lines 784 to 791):
Code: Select all
for (p = hostmask; *p; p++)
if (*p != '*' && *p != '.' && *p != '?')
i++;
if (i < 4)
{
sendnotice(sptr, "*** [error] Too broad mask");
return 0;
}
Save and compile the module.
You should now be able to add a cmdshun like that:
Code: Select all
/CMDSHUN +*@* NICK 0 Reason: None of your business
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.
Posted: Sun Apr 02, 2006 3:51 pm
by Jason
sigchill: Little late for April fools. Perhaps next year though.
How did the prank go? Were you able to pull it off?