Site Tools


on_channel_signoff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

on_channel_signoff [2011/10/31 20:00] (current)
Line 1: Line 1:
 +======Synopsis:​======
 +[[on]] [<​modes>​]channel_signoff [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +
 +======Summary:​======
 +Triggered by other people'​s [[quit]]s or disconnections from irc.
 +
 +======Description:​======
 +The __channel_signoff__ event is thrown every time someone on one of your
 +channels quits irc.  If the person is on multiple channels with you, multiple
 +events are thrown. ​ This event is not thrown when //you// quit irc, the
 +event for that is [[exit]].
 +
 +======Parameters:​======
 +|$0   |the channel the signoff was observed on |
 +|$1   |the nickname of the person leaving irc |
 +|$2-  |signoff message |
 +
 +======Default action:​======
 +If you don't suppress this event, the client will throw an [[on signoff]] event.
 +
 +======Examples:​======
 +To distinguish signoffs from one channel to another:
 +   on ^channel_signoff * (chan, nick, message) {
 +      if (iscurchan($chan)) {
 +         xecho -b Signoff by $nick \($message\);​
 +      } {
 +         xecho -b Signoff by $nick from $chan \($message\);​
 +      };
 +   };
 +
 +======History======
  
on_channel_signoff.txt ยท Last modified: 2011/10/31 20:00 (external edit)