Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
20
bitchx-docs/6_Functions/iscurchan
Normal file
20
bitchx-docs/6_Functions/iscurchan
Normal file
@@ -0,0 +1,20 @@
|
||||
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:
|
||||
/on ^send_public * {if ([$0] == C) {...} {...}}
|
||||
Try doing:
|
||||
/on ^send_public * {if (iscurchan($0)) {....} {...}}
|
||||
|
||||
Reference in New Issue
Block a user