Seeding from the 1.2 tree.

This commit is contained in:
Dan Mashal
2013-01-01 03:00:55 -08:00
parent d8c87c4ded
commit 87b806a563
1424 changed files with 260320 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
Synopsis:
$winbound(<channel name>/<window name>/<window refnum>)
Technical:
If the first argument refers to a channel, the function returns the window
refnum that the channel is bound to (if any). If the argument refers to
a window, the channel bound to that window is returned (if any).
Practical:
This can be used to determine wether a channel is already bound, as to not
bind it twice.
Returns:
channel name, if argument refers to a window
window refnum, if argument is a channel
nothing, if channel/window is not bound
Examples:
/window refnum 2 bind #epic
eval echo $winbound(2) /* returns "#epic" */
eval echo $winbound(#epic) /* returns 2 */
Other Notes:
If a given window name looks like a channel, the window name takes
precedence.