From WikiChip
Difference between revisions of "mirc/identifiers/$show"
(Created page with "{{mirc title|$show Identifier}}'''$show''' return $true if the alias is called silently with the dot '.', $false otherwise. == Synopsis == <pre>$show</pre> == Paramters == ...") |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$show | + | {{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 == | ||
<pre>$show</pre> | <pre>$show</pre> | ||
− | == | + | == Parameters == |
− | |||
None | None | ||
== Properties == | == Properties == | ||
− | |||
None | None | ||
== Example == | == Example == | ||
+ | |||
+ | 1. | ||
<source lang="mIRC"> | <source lang="mIRC"> | ||
alias test { | alias test { | ||
− | echo -a $show | + | echo -a test $1- $ $+ show== $+ $show |
− | }</source>Type /test vs /.test | + | } |
+ | 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"> | ||
+ | alias test { | ||
+ | echo -ag test show $show | ||
+ | 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 == | ||
Line 22: | Line 42: | ||
== See Also == | == See Also == | ||
− | {{mIRC|Aliases}} | + | *{{mIRC|Aliases}} |
− | [[Category: | + | {{mIRC identifier list}} |
+ | [[Category:mIRC identifiers|show]] |
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