Disable /nick

These are old archives. They are kept for historic purposes only.
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Disable /nick

Post by Grunt » Wed Mar 29, 2006 1:59 pm

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.

sChutt
Posts: 48
Joined: Mon Mar 07, 2005 8:20 pm

Post by sChutt » Wed Mar 29, 2006 4:35 pm

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:

Code: Select all

//msg chanserv set mode $chan +N
Then obviously set channel modes locked

Code: Select all

//msg chanserv set $chan mlock +N
So ur fellow chanops can't turn it off unless they are channel owner.

- sChutt

Bricker
Posts: 88
Joined: Tue May 03, 2005 7:31 am
Location: Sterling, VA, USA

Post by Bricker » Wed Mar 29, 2006 6:10 pm

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
-Bricker-

sChutt
Posts: 48
Joined: Mon Mar 07, 2005 8:20 pm

Post by sChutt » Wed Mar 29, 2006 6:22 pm

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

Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post by Grunt » Wed Mar 29, 2006 8:19 pm

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.
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.

Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason » Wed Mar 29, 2006 9:27 pm

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.
Why the hell can't my signature be empty?
"Your message contains too few characters."

Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post by Grunt » Thu Mar 30, 2006 6:01 am

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.

sChutt
Posts: 48
Joined: Mon Mar 07, 2005 8:20 pm

Post by sChutt » Thu Mar 30, 2006 7:24 am

Grunt wrote:And btw, +N is an UnrealIRCD channel mode. Just a small correction.
My bad. ;)

- sChutt

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Fri Mar 31, 2006 2:03 am

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

Stskeeps
Former UnrealIRCd head coder
Posts: 23
Joined: Mon Mar 20, 2006 9:24 pm
Location: Hell, On, Earth

Post by Stskeeps » Fri Mar 31, 2006 5:31 am

P r o b a b l y won't work .. :evil: You're much better off making a module for it

Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason » Sun Apr 02, 2006 2:19 am

Stealth: Without NICK, people cant connect to the server, as NICK is critical to the login process.
Why the hell can't my signature be empty?
"Your message contains too few characters."

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Sun Apr 02, 2006 7:01 am

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...

Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post by Grunt » Sun Apr 02, 2006 10:27 am

No need for "zomfg server chrash". I dit it my way, with a mIRC script and a +N channel. Simple, and effective.

(Funny too.)
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.

sigchill
Posts: 6
Joined: Sat Apr 01, 2006 1:27 am

Post by sigchill » Sun Apr 02, 2006 1:23 pm

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.

Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason » Sun Apr 02, 2006 3:51 pm

sigchill: Little late for April fools. Perhaps next year though.

How did the prank go? Were you able to pull it off?
Why the hell can't my signature be empty?
"Your message contains too few characters."

Post Reply