Difference between revisions of "On notify"

From Scriptwiki
Jump to: navigation, search
 
m
 
Line 18: Line 18:
  
 
== See Also ==
 
== See Also ==
To react when people in your notify list leave IRC, take a look at the [[On_unotify|On unotify event]]
+
* [[On_unotify|On unotify event]] to react when people in your notify list leave IRC.
 +
* [[$notify]] to get information about your notify list.
  
 
[[Category:Events]]
 
[[Category:Events]]
 
[[Category:Notify List]]
 
[[Category:Notify List]]

Latest revision as of 09:19, 2 July 2007

The on NOTIFY event triggers when a user in your notify list joins IRC.

on <level>:NOTIFY:<commands>

Read access levels to get more info about the <level> field.

Example

on *:NOTIFY: {
 echo -a $nick has just joined IRC.
}

This event would trigger when someone in your notify list joins IRC and echo it to your acive window.


on *:NOTIFY: {
 if ($nick == Dana) {
  msg $nick Hey, I'm online too!
 }
}

This example would trigger when someone with the nick Dana joins IRC (if the nick is in your notify list only ofcourse) and write him a message.

See Also

  • On unotify event to react when people in your notify list leave IRC.
  • $notify to get information about your notify list.