Site Tools


iscurchan
no way to compare when less than two revisions

Differences

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


iscurchan [2006/07/11 04:57] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: iscurchan.txt,v 1.1.1.1 2006/07/11 04:57:43 jnelson Exp $
 +======Synopsis:======
 +$__iscurchan__(<channel name>)
 +
 +======Technical:======
 +This function returns '1' if the input channel name is the current channel
 +on any window connected to the current server.
 +
 +======Practical:======
 +This function was intended to allow more flexibility for testing the
 +current channel in an ON hook.
 +
 +======Returns:======
 +'1' if <channel name> is a current channel, else returns '0'
 +
 +======Examples:======
 +Instead of:
 +<file>   /on ^send_public * {if ([$0] == C) {...} {...}}</file>
 +Try doing:
 +<file>   /on ^send_public * {if (iscurchan($0)) {....} {...}}</file>
 +
  
iscurchan.txt · Last modified: 2006/07/11 04:57 by 127.0.0.1