nick questions

These are old archives. They are kept for historic purposes only.
Post Reply
stereo
Posts: 2
Joined: Wed Feb 09, 2005 11:55 am

nick questions

Post by stereo »

Hello, I have two questions that I couldn't answer myslef.

A.
Can I restrict /nick changes server-wide?
I have a +N in modes-on-join but if a user parts from all channels, then he is able to change his nick and I do not want this to happen.

B.
Are dots (.) allowed in the nickname?

Thank you in advance
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

A.
No you can't do that. (Well maybe it could be done in a module).

B.
No, dots are not allowed.
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

a module would defently need to be done for that becuz services / svsnick etc force the user to change nicknames, this would have to be excempt.
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
stereo
Posts: 2
Joined: Wed Feb 09, 2005 11:55 am

Post by stereo »

Well, yeah, but what I mean is to restrict the user from doing his own /nick ... since you can actually force that in every area of your server but one.

Anyway, since dots are not allowed my biggest problem is still unsloved.
Thanks anyway!
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

A . will NEVER be supported in a nickname. It would break everything! If a user signed on with the nickname "irc.blah.com" imagine the problems it could cause. It would result in collisions between nicknames and servers. It would cause havoc!
-- codemastr
Darvocet
Posts: 105
Joined: Sun Jun 27, 2004 6:40 am
Location: Houston, TX
Contact:

Post by Darvocet »

codemastr wrote:It would cause havoc!
hehe that just sounds like it would be terriable :P
- Darvocet
Sr. Network Admin: EpicIRC.Net
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

codemastr wrote:A . will NEVER be supported in a nickname. It would break everything! If a user signed on with the nickname "irc.blah.com" imagine the problems it could cause. It would result in collisions between nicknames and servers. It would cause havoc!
Yes but reading through m_nick I noticed that in the case of the impossible nick/server collision, servers always win... :) .
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

aquanight, yes, you are right. But go look at some services. You'll see that there are many where IsServer(string) is really just strchr(string,'.') so services might give users elevated privileges. There are also other issues like if I type /motd irc.* and irc.blah.com is actually a user, it might return something unexpected (if irc.blah.com is connected to something.test.com you'll get something.test.com's motd). There is also the issue of spam. What better way to spam than to use your irc server's address as your nick? Join a bunch of big channels with nick irc.mynet.com and I'm sure some people would try it even if it was only because they were curious as to how you used such a nickname.
-- codemastr
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

True, though that really wasn't the reason I was thinking for forcing users and servers to be effectively in different namespaces (even though they aren't, the . rule makes it 100% impossible to ever have a collision). Generally servers and users should never be able to fight over a name, especially since servers are more restricted as to what names they can use on an irc network (iow, link{} stuff)... plus, unless I missed it in my quick skim, m_server doesn't do the same nick/server collision check that m_nick does, so that makes me shudder to think what would happen when a user already has the name and the server suddenly connects to the network... but of course, that'd never happen because the two can't possibly collide :P .
Post Reply