From WikiChip
Difference between revisions of "mirc/identifiers/$show"
m |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$show identifier}}'''$show''' returns {{mirc|$true}} if the alias is called silently with the dot '.', {{mirc|$false}} otherwise. | + | {{mirc title|$show identifier}}'''$show''' returns {{mirc|$true}} if the alias is called silently with the dot '.' prefix, {{mirc|$false}} otherwise. |
+ | '''Note''': custom aliases called inside a silenced custom alias will be silenced as well with no way to make them non silenced, see second example | ||
== Synopsis == | == Synopsis == | ||
Line 12: | Line 13: | ||
== Example == | == Example == | ||
+ | |||
+ | 1. | ||
+ | <source lang="mIRC"> | ||
+ | alias test { | ||
+ | echo -a test $1- $ $+ show== $+ $show | ||
+ | } | ||
+ | alias script_test { | ||
+ | test Called from a script without a dot: | ||
+ | .test Called from a script with a dot: | ||
+ | }</source> | ||
+ | Type /script_test | ||
+ | |||
+ | 2. | ||
+ | |||
<source lang="mIRC"> | <source lang="mIRC"> | ||
alias test { | alias test { | ||
− | echo - | + | echo -ag test show $show |
− | }</source>Type /test vs /.test | + | test1 |
+ | } | ||
+ | alias test1 { | ||
+ | echo -ag test1 show $show | ||
+ | }</source> | ||
+ | Type /test vs. /.test, notice how /test1 will say that $show is $false when you use /.test, despite the /test1 call not being silenced inside the alias test. | ||
+ | |||
== Compatibility == | == Compatibility == |
Latest revision as of 13:40, 21 March 2023
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$show returns $true if the alias is called silently with the dot '.' prefix, $false otherwise.
Note: custom aliases called inside a silenced custom alias will be silenced as well with no way to make them non silenced, see second example
Synopsis[edit]
$show
Parameters[edit]
None
Properties[edit]
None
Example[edit]
1.
alias test { echo -a test $1- $ $+ show== $+ $show } alias script_test { test Called from a script without a dot: .test Called from a script with a dot: }
Type /script_test
2.
alias test { echo -ag test show $show test1 } alias test1 { echo -ag test1 show $show }
Type /test vs. /.test, notice how /test1 will say that $show is $false when you use /.test, despite the /test1 call not being silenced inside the alias test.
Compatibility[edit]
Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC identifier list