From WikiChip
Difference between revisions of "mirc/on events/on notice"
m (bot: cat fixing naming) |
m (→Compatibility: This was added in 3.5) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Notice - Events}} | ||
The '''on notice''' event is triggered when mIRC receives a notice from a client on the server. | The '''on notice''' event is triggered when mIRC receives a notice from a client on the server. | ||
Line 44: | Line 45: | ||
==Compatibility== | ==Compatibility== | ||
− | + | {{mIRC compatibility|3.5}} | |
− | |||
− | |||
==See Also== | ==See Also== |
Latest revision as of 10:06, 17 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The on notice event is triggered when mIRC receives a notice from a client on the server.
Synopsis[edit]
on <level>:NOTICE:<matchtext>:<target>:<commands>
Parameters[edit]
- <level>
- <matchtext>
- <target>
- <commands>
Examples[edit]
Give a person "500 points" for sending a secret command:
on *:NOTICE:thesecretcommand:?:{ .notice $nick Congratulations! You have entered the secret command! .notice $nick Please accept these free 500 points... hinc -m $+(points.,$network) $wildsite 500 }
Op or deop a user with an access level of 5 on the channel they specify:
on 5:NOTICE:*op #*:?:{ if ($istok(op dop,$1,32)) { if ($me !ison $2) { .notice $nick I am not on that channel. } elseif ($me !isop $2) { .notice $nick I am not opped in that channel. } else mode $2 $iif($1 == op,+o,-o) $nick } }
Automatically identify to most NickServ services if your current nickname is TheUsualNick:
on *:NOTICE:This nickname is registered*:TheUsualNick:{ if ($nick == NickServ) { ns identify M`/p@SsW0r|) } }
Compatibility[edit]
Added: mIRC v3.5
Added on: 07 Aug 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC on event list