InspIRCd v2 is coming to the end of its lifetime!
Fixes for security vulnerabilities will be provided until 2021-01-01 but after this date v2 will no longer be maintained.
InspIRCd v3 contains many new features including full support for all currently ratified IRCv3 extensions and WebSocket connections.
The "hostchange" Module
This module allows the server administrator to define custom rules for applying hostnames to users.
To load this module use the following
<host> tag defines settings about how the hostchange module should behave. This tag can only be defined once.
|prefix||Text||None||If set then the value to prefix nicknames with in hostchange rules that use the addnick action.|
|separator||Text||None||If set then the value to include between the prefix/suffix and another value.|
|suffix||Text||None||If set then the value to suffix nicknames with in hostchange rules that use the addnick action or the value to use as the host in hostchange rules that use the suffix action.|
<host prefix="example" separator="." suffix="example.com">
<hostchange> tag defines an hostname setting rule. This tag can be defined as many times as required.
|action||Text||None||The action to take when a user matches this rule.|
|mask||Text||None||A glob pattern or CIDR range that a user must be connecting from to match against this rule.|
|ports||No. Range||None||A numeric range of ports that a user must be connecting from to match against this rule.|
|value||Text||None||Required for the set action! The hostname to set on this user.|
The action field should be set to one of the following values:
|addnick||Set the hostname of matching users to their nickname. If
|set||Set the hostname of matching users to the value specified in the value field.|
|suffix||Set the hostname of matching users to the value specified in
Sets the hostname of all connecting users to "ExampleNet/Users/<nick>":
<host prefix="ExampleNet/Users" separator="/"> <hostchange action="addnick" mask="*">
Sets the hostname of all users who connected on port 6697 to "<nick>.secureusers.example.com":
<host separator="." suffix="secureusers.example.com"> <hostchange action="addnick" mask="*" port="6697">
Sets the hostname of users connecting from *.servers.example.com to "webchat.example.com":
<hostchange action="set" mask="*.servers.example.com" value="webchat.example.com">
Sets the hostname of users connecting from *.example.com to the host suffix:
<host suffix="example.com"> <hostchange action="suffix" mask="*.example.com"