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
nick questions
-
White_Magic
- Posts: 267
- Joined: Tue Jan 18, 2005 3:24 pm
- Location: Scotland - United Kingdom
Yes but reading through m_nick I noticed that in the case of the impossible nick/server collision, servers always win...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!
-
codemastr
- Former UnrealIRCd head coder
- Posts: 811
- Joined: Sat Mar 06, 2004 8:47 pm
- Location: United States
- Contact:
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
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
.