From 2761ea9ffeca2f4ded85a097f6fb0a1aa822b6fb Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 6 Jan 2022 15:27:48 +0000 Subject: [PATCH] Update special.ps1 added throw write only error string --- lib/special.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/special.ps1 b/lib/special.ps1 index b1ae2d8..2cd0a57 100644 --- a/lib/special.ps1 +++ b/lib/special.ps1 @@ -2,7 +2,7 @@ class Special { hidden AddPublicMembers($commands) { $commands | ForEach-Object { # Define getter - # $GetterSignature = "`$this.Getter(`$this.cmd('{0}'))" -f $_ + $GetterSignature = "`$this.Getter(`$this.cmd('{0}'))" -f $_ # Define setter $SetterSignature = "`$this.Setter(`$this.cmd('{0}'))" -f $_ @@ -10,7 +10,7 @@ class Special { Name = $_ MemberType = 'ScriptProperty' Value = [ScriptBlock]::Create($SetterSignature) - SecondValue = [ScriptBlock]::Create($SetterSignature) + SecondValue = [ScriptBlock]::Create($GetterSignature) } $this | Add-Member @AddMemberParams } @@ -39,7 +39,7 @@ class Special { $this._showvbanchat = $this.Setter($this.cmd('DialogShow.VBANCHAT')) }` { - $this._showvbanchat = $this.Setter($this.cmd('DialogShow.VBANCHAT')) + $this._showvbanchat = $this.Getter($this.cmd('DialogShow.VBANCHAT')) } ) }