mirror of https://github.com/progval/irctest.git
Sable: Hide NickServ/ChanServ when running without services
They interfere with 'WHO *' as they are returned as matches
This commit is contained in:
parent
9f8e712776
commit
07020666ba
|
@ -116,20 +116,7 @@ NETWORK_CONFIG_CONFIG = """
|
|||
],
|
||||
|
||||
"alias_users": [
|
||||
{
|
||||
"nick": "ChanServ",
|
||||
"user": "ChanServ",
|
||||
"host": "services.",
|
||||
"realname": "Channel services compatibility layer",
|
||||
"command_alias": "CS"
|
||||
},
|
||||
{
|
||||
"nick": "NickServ",
|
||||
"user": "NickServ",
|
||||
"host": "services.",
|
||||
"realname": "Account services compatibility layer",
|
||||
"command_alias": "NS"
|
||||
}
|
||||
%(services_alias_users)s
|
||||
],
|
||||
|
||||
"default_roles": {
|
||||
|
@ -160,6 +147,23 @@ NETWORK_CONFIG_CONFIG = """
|
|||
}
|
||||
"""
|
||||
|
||||
SERVICES_ALIAS_USERS = """
|
||||
{
|
||||
"nick": "ChanServ",
|
||||
"user": "ChanServ",
|
||||
"host": "services.",
|
||||
"realname": "Channel services compatibility layer",
|
||||
"command_alias": "CS"
|
||||
},
|
||||
{
|
||||
"nick": "NickServ",
|
||||
"user": "NickServ",
|
||||
"host": "services.",
|
||||
"realname": "Account services compatibility layer",
|
||||
"command_alias": "NS"
|
||||
}
|
||||
"""
|
||||
|
||||
SERVER_CONFIG = """
|
||||
{
|
||||
"server_id": 1,
|
||||
|
@ -374,6 +378,7 @@ class SableController(BaseServerController, DirectoryBasedController):
|
|||
.strip(),
|
||||
services_management_hostname=services_management_hostname,
|
||||
services_management_port=services_management_port,
|
||||
services_alias_users=SERVICES_ALIAS_USERS if run_services else ""
|
||||
)
|
||||
|
||||
with self.open_file("configs/network.conf") as fd:
|
||||
|
|
Loading…
Reference in New Issue