Skip to content

Commit

Permalink
ae.net.irc.server: Announce NICKLEN in capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Jun 24, 2016
1 parent dd0ba77 commit 2319b5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/irc/server.d
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class IrcServer
/// Server configuration
string hostname, password, network;
string nicknameValidationPattern = "^[a-zA-Z][a-zA-Z0-9\\-`\\|\\[\\]\\{\\}_^]{0,14}$";
uint nicknameMaxLength = 15; /// For the announced capabilities
string serverVersion = "ae.net.irc.server";
string[] motd;
string chanTypes = "#&";
Expand Down Expand Up @@ -1046,6 +1047,7 @@ protected:
if (network)
result ~= "NETWORK=" ~ network;
result ~= "CASEMAPPING=rfc1459";
result ~= "NICKLEN=" ~ text(nicknameMaxLength);
return result;
}

Expand Down

0 comments on commit 2319b5b

Please sign in to comment.