summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-servers.h
diff options
context:
space:
mode:
authorSebastian Thorarensen <sebth@naju.se>2014-06-17 17:25:40 +0200
committerSebastian Thorarensen <sebth@naju.se>2014-07-06 23:24:09 +0200
commit90f3dd612e0d7a6027e60018ca5476e7ddb52f54 (patch)
tree6eb512d110c8b284fb8a50efe1cd78cb4cdbb930 /src/irc/core/irc-servers.h
parent281c6d437dbc30ffc30c615b8dc773dc937abefa (diff)
downloadirssi-90f3dd612e0d7a6027e60018ca5476e7ddb52f54.zip
Fix the `userhostlen' fallback in `split_message'
ferret, the author of `splitlong-safe.pl' pointed out that `userhostlen' should not only contain the maximum length of the hostname, but also the maximum length of the username. Now 10 is used as the maximum username length as a fallback. (`splitlong-safe.pl' uses the same limit.) The username limit isn't defined in the standard, but 10 is common on many networks. The odds that something goes wrong here is low, as 1) the fallback limit is only used when the user has not yet joined a channel 2) the maximum hostname length (63) gives some error margin as the hostname usually is shorter
Diffstat (limited to 'src/irc/core/irc-servers.h')
0 files changed, 0 insertions, 0 deletions