[[rule]]
from = "Channel"
to = "ChannelEdit"
operation = "update"
ids = [
{ from="Id", to="ChannelId" },
]
properties = [
{ from="password", type="str?", function="PasswordFlaggedB2m", tolist=["HasPassword", "Password"] },
{ from="ChannelType", type="ChannelType", function="ChannelTypeFunB2m", tolist=["IsSemiPermanent", "IsPermanent"] },
{ from="MaxClients", type="MaxClients", function="MaxClientsFunB2m", tolist=["MaxClients", "IsMaxClientsUnlimited"] },
{ from="MaxFamilyClients", type="MaxClients", function="MaxFamilyClientsFunB2m", tolist=["MaxFamilyClients", "IsMaxFamilyClientsUnlimited", "InheritsMaxFamilyClients"] },
{ from="Description", to="Description" },
]
[[rule]]
from = "Channel"
to = "ChannelDescriptionRequest"
operation = "update"
ids = [
{ from="Id", to="ChannelId" },
]
[[rule]]
from = "Channel"
to = "ChannelMove"
operation = "update"
ids = [
{ from="Id", to="ChannelId" },
{ from="Parent", type="ChannelId", function="ChannelIdB2m", tolist=["ParentId"] },
{ from="Order", type="ChannelId", function="ChannelIdB2m", tolist=["Order"] },
]
[[rule]]
from = "Channel"
to = "CreateDirectory"
operation = "update"
ids = [
{ from="Id", to="ChannelId" },
{ from="Password", type="str", function="PasswordB2m", tolist=["ChannelPassword"] },
{ from="Path", to="DirectoryName" },
]
[[rule]]
from = "Channel"
to = "DeleteFile"
operation = "update"
ids = [
{ from="Id", to="ChannelId" },
{ from="Password", type="str", function="PasswordB2m", tolist=["ChannelPassword"] },
{ from="Path", to="Name" },
]
[[rule]]
from = "Channel"
to = "FileListRequest"
operation = "update"
ids = [
{ from="Id", to="ChannelId" },
{ from="Password", type="str", function="PasswordB2m", tolist=["ChannelPassword"] },
{ from="Path", to="Path" },
]
[[rule]]
from = "Channel"
to = "RenameFile"
operation = "update"
ids = [
{ from="Id", to="ChannelId" },
{ from="Password", type="str", function="PasswordB2m", tolist=["ChannelPassword"] },
{ from="FromPath", to="OldName" },
{ from="ToPath", to="NewName" },
]
properties = [
{ from="ToChannel", to="TargetChannelId" },
{ from="ToChannelPassword", type="str", function="PasswordB2m2", tolist=["TargetChannelPassword"] },
]
[[rule]]
from = "Client"
to = "ClientConnectionInfoRequest"
operation = "update"
ids = [
{ from="Id", to="ClientId" },
]
[[rule]]
from = "Client"
to = "ClientVariablesRequest"
operation = "update"
ids = [
{ from="Id", to="ClientId" },
]
[[rule]]
from = "Client"
to = "ClientEdit"
operation = "update"
ids = [
{ from="Id", to="ClientId" },
]
[[rule]]
from = "Connection"
to = "ClientUpdate"
operation = "update"
properties = [
{ from="Name", to="Name" },
{ from="PhoneticName", to="PhoneticName" },
{ from="InputMuted", to="InputMuted" },
{ from="OutputMuted", to="OutputMuted" },
{ from="InputHardwareEnabled", to="InputHardwareEnabled" },
{ from="OutputHardwareEnabled", to="OutputHardwareEnabled" },
{ from="IsChannelCommander", to="IsChannelCommander" },
{ from="IsRecording", to="IsRecording" },
{ from="AvatarHash", to="AvatarHash" },
{ from="Away", type="str?", function="AwayFunB2m", tolist=["IsAway", "AwayMessage"] },
{ from="TalkPowerRequest", type="str?", function="AwayFunB2m", tolist=["TalkPowerRequest", "TalkPowerRequestMessage"] },
]
[[rule]]
from = "Connection"
to = "Disconnect"
operation = "remove"
[[rule]]
from = "Connection"
to = "PluginCommandRequest"
operation = "update"
ids = [
{ from="Name", to="Name" },
{ from="Data", to="Data" },
{ from="Target", to="Target" },
{ from="TargetClientId", to="TargetClientId" },
]
[[rule]]
from = "Client"
to = "ServerGroupAddClient"
operation = "add"
ids = [
{ from="DatabaseId", to="ClientDbId" },
]
properties = [
{ from="ServerGroup", to="ServerGroupId" },
]
[[rule]]
from = "Client"
to = "ServerGroupDelClient"
operation = "remove"
ids = [
{ from="DatabaseId", to="ClientDbId" },
]
properties = [
{ from="ServerGroup", to="ServerGroupId" },
]
[[rule]]
from = "Client"
to = "ClientMove"
operation = "update"
ids = [
{ from="Id", to="ClientId" },
{ from="Channel", type="ChannelId", function="ChannelIdB2m", tolist=["ChannelId"] },
]
properties = [
{ from="Password", type="str", function="PasswordB2m", tolist=["ChannelPassword"] },
]
[[rule]]
from = "Client"
to = "ClientKick"
operation = "update"
ids = [
{ from="Id", to="ClientId" },
{ from="Reason", to="Reason" },
]
properties = [
{ from="ReasonMessage", to="ReasonMessage" },
]
[[rule]]
from = "Server"
to = "FileListRequest"
operation = "update"
ids = [
{ function="ZeroChannelId", tolist=["ChannelId"] },
{ function="EmptyString", tolist=["ChannelPassword"] },
{ from="Path", to="Path" },
]
[[rule]]
from = "Server"
to = "DeleteFile"
operation = "update"
ids = [
{ function="ZeroChannelId", tolist=["ChannelId"] },
{ function="EmptyString", tolist=["ChannelPassword"] },
{ from="Path", to="Name" },
]
[[rule]]
from = "Server"
to = "ServerVariablesRequest"
operation = "update"
ids = [
]
[[rule]]
from = "Server"
to = "ServerConnectionInfoRequest"
operation = "update"
ids = [
]
[[rule]]
from = "Server"
to = "LogView"
operation = "update"
ids = [
]
properties = [
{ from="Lines", to="Lines" },
{ from="Reverse", to="Reverse" },
{ from="InstanceLog", to="InstanceLog" },
{ from="Offset", to="Offset" },
]
[[rule]]
from = "Server"
to = "ServerEdit"
operation = "update"
ids = [
]
properties = [
{ from="Password", type="str?", function="PasswordB2m", tolist=["Password"] },
]
[[rule]]
from = "ServerGroup"
to = "ServerGroupAddClient"
operation = "add"
ids = [
{ from="Id", to="ServerGroupId" },
]
properties = [
{ from="Client", to="ClientDbId" },
]
[[rule]]
from = "ServerGroup"
to = "ServerGroupDelClient"
operation = "remove"
ids = [
{ from="Id", to="ServerGroupId" },
{ from="Client", to="ClientDbId" },
]