Tip of the day: You can use the SAJOIN command to force a user to join a channel. Bans and other restrictions will be bypassed.
|
Translations:Configuration/29/en
Deny link block
This block allows you to use specific rules to deny a server from linking. It only applies to direct server links to/from us (not "far links"). It's slightly complex and typically only used on networks with 3 or more servers.
Syntax
deny link {
mask <server-name>;
rule <crule-expression>;
type <type-of-denial>;
}
The mask specifies a wildcard mask of the server name to apply this rule to.
The rule directive can be complex. A crule expression allows you to control the link in great detail, and it is set up like a programming expression. If the entire expression of the rule evaluates to true, then the link is denied.
Four operators are supported:
connected(<servermask>): returns true if a server matching servermask is connecteddirectcon(<servermask>): returns true if the server matching servermask is directly connected to this servervia(<viamask>,<servermask>): returns true if a server matching servermask is connected by a server matching viamaskdirectop(): returns true if the operator issuing a /connect is directly connected to this server
These operators can be combined using && (and) and || (or). Items may also be enclosed in parenthesis () to allow grouping. In addition, if any of the four operators are preceded with a ! then it means NOT.
The type allows two different values::
auto: only applies to autoconnects, /connect will still workall: applies to all connection attempts
Example
NOTE: This example is for UnrealIRCd 5.2.1 and later
deny link {
mask {
*;
!foobar.hub;
}
rule !connected(foobar.hub);
type all;
}