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?
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?
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) }
}