mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2007
Posts: 34
C
cygnusx Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2007
Posts: 34
Can you tell me what is the max length of a nickname,or that depends on the server/network?Is it possible some invalid characters(for nickname) on a network to be valid on other network?

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
1) That's up to the server.

2) Yes.

Joined: Jan 2007
Posts: 34
C
cygnusx Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jan 2007
Posts: 34
ok,if the length of the nickname exceeds the max length for the server,it is automatically changed by the server,but this is for all servers or just a certain servers support this feature?

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Most all IRCd's have this and if your nick length exceeds the limit it's just truncated.

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Afaik, "max nicklen" is always part of the "version" reply of the server you connect to (that is RAW 5 - at least on unreal IRCD in general, on quakenet and on undernet where I tested this). You receive these RAWlines on connect, and as reply to the command "/version".
A script could grab and parse the max nicklen, e.g.:
Code:
RAW 5:*: { 
  if ($matchtok($2-,nicklen,1,32)) { set -se $+(%,nicklen.,$network,.,$server) $gettok($ifmatch,2,61) }
}

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The only networks that I've found this not to be the case, are chatserv networks, and even they don't seem to have a standard.


Link Copied to Clipboard