Page 1 of 1

nick questions

Posted: Wed Feb 09, 2005 12:00 pm
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

Posted: Wed Feb 09, 2005 12:18 pm
by Dukat
A.
No you can't do that. (Well maybe it could be done in a module).

B.
No, dots are not allowed.

Posted: Wed Feb 09, 2005 1:57 pm
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.

Posted: Wed Feb 09, 2005 2:02 pm
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!

Posted: Fri Feb 11, 2005 5:13 pm
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!

Posted: Fri Feb 11, 2005 6:37 pm
by Darvocet
codemastr wrote:It would cause havoc!
hehe that just sounds like it would be terriable :P

Posted: Sat Feb 12, 2005 5:33 pm
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... :) .

Posted: Sat Feb 12, 2005 6:39 pm
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.

Posted: Sun Feb 13, 2005 2:46 am
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 .