Skip to content

Commit

Permalink
Fix support of Unreal 5
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed May 13, 2022
1 parent 0f100a5 commit 683f7c0
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions irctest/controllers/unrealircd.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ class servers;
}}
modes-on-join "+H 100:1d"; // Enables CHATHISTORY
// Remove RPL_WHOISSPECIAL used to advertise security groups
whois-details {{
security-groups {{ everyone none; self none; oper none; }}
}}
{set_extras}
}}
Expand Down Expand Up @@ -193,8 +190,20 @@ def run(
loadmodule "cloak_md5";
"""
)
set_extras = textwrap.indent(
textwrap.dedent(
"""
// Remove RPL_WHOISSPECIAL used to advertise security groups
whois-details {
security-groups { everyone none; self none; oper none; }
}
"""
),
" ",
)
else:
extras = ""
set_extras = ""

with self.open_file("empty.txt") as fd:
fd.write("\n")
Expand All @@ -215,6 +224,7 @@ def run(
pem_path=self.pem_path,
empty_file=os.path.join(self.directory, "empty.txt"),
extras=extras,
set_extras=set_extras,
)
)

Expand Down

0 comments on commit 683f7c0

Please sign in to comment.