From WikiChip
Difference between revisions of "mirc/commands/haltdef"
m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +)) |
(→Example) |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''/haltdef command''' halts the default processing of an event. When mIRC is about to trigger an event, mIRC will first check for events that use the '^' prefix, and then check the regular events. After processing events using the '^' prefix, mIRC will apply the default action for that event, usually displaying text, but it can be highlighting a window etc.. Using /haltdef only have an effect inside an event using the '^' prefix, and will prevent mIRC from performing his default action. | + | {{mirc title|/haltdef Command}} |
+ | The '''/haltdef command''' halts the default processing of an event. When mIRC is about to trigger an event, mIRC will first check for events that use the {{mIRC|access_levels#.5E_prefix|'^' prefix}}, and then check the regular events. After processing events using the '^' prefix, mIRC will apply the default action for that event, usually displaying text, but it can be highlighting a window etc.. Using /haltdef only have an effect inside an event using the '^' prefix, and will prevent mIRC from performing his default action. | ||
+ | |||
+ | '''Note''': Not all events support the '^' prefix, you can find a list of events supporting the '^' prefix {{mIRC|access_levels#.5E_prefix|here}} | ||
Line 12: | Line 15: | ||
== Example == | == Example == | ||
+ | With '^' prefix on event | ||
<syntaxhighlight lang="mIRC">on ^*:op:#mIRC:{ | <syntaxhighlight lang="mIRC">on ^*:op:#mIRC:{ | ||
haltdef | haltdef | ||
echo -t #mIRC OP : $opnick by $nick | echo -t #mIRC OP : $opnick by $nick | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | And without '^' prefix | ||
+ | <syntaxhighlight lang="mIRC"> | ||
+ | raw 312:*: { | ||
+ | haltdef | ||
+ | |||
+ | echo -at $2 using $3 - ( $+ $4- $+ ) | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 28: | Line 41: | ||
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:mIRC commands|haltdef command - mIRC]] |
Latest revision as of 09:13, 8 February 2021
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /haltdef command halts the default processing of an event. When mIRC is about to trigger an event, mIRC will first check for events that use the '^' prefix, and then check the regular events. After processing events using the '^' prefix, mIRC will apply the default action for that event, usually displaying text, but it can be highlighting a window etc.. Using /haltdef only have an effect inside an event using the '^' prefix, and will prevent mIRC from performing his default action.
Note: Not all events support the '^' prefix, you can find a list of events supporting the '^' prefix here
Synopsis[edit]
/haltdef
Switches[edit]
None
Parameters[edit]
None
Example[edit]
With '^' prefix on event
on ^*:op:#mIRC:{ haltdef echo -t #mIRC OP : $opnick by $nick }
And without '^' prefix
raw 312:*: { haltdef echo -at $2 using $3 - ( $+ $4- $+ ) }
Compatibility[edit]
Added: 5.4
See also[edit]
mIRC commands list