Difference between revisions of "$chan (window)"

From Scriptwiki
Jump to: navigation, search
m
Line 11: Line 11:
 
<br>
 
<br>
 
<table border="1">
 
<table border="1">
<tr><td>Property></td><td>Description</td></tr>
+
<tr><td>Property</td><td>Description</td></tr>
 
<tr><td>topic</td><td>the channel's topic</td></tr>
 
<tr><td>topic</td><td>the channel's topic</td></tr>
 
<tr><td>mode</td><td>the channel modes</td></tr>
 
<tr><td>mode</td><td>the channel modes</td></tr>

Revision as of 08:38, 26 August 2005

Using the $chan identifier you can get information about the channel(s) you're using.

$chan(N/#chan)

You can use a channel or a number for the first parameter. When you specify a channel, mIRC will return information about that particular channel, otherwise it returns information about the Nth channel. $chan returns the number of channels if N is 0 (zero).

When used without any parameters, $chan returns the channel where the current event (e.g. an on TEXT or on JOIN event) occured.

The following properties are available for $chan:


PropertyDescription
topicthe channel's topic
modethe channel modes
keythe channel key (if channel mode +k is set)
limitthe channel limit (if channel mode +l is set)
ial$true when mIRC knows the addresses of all users on that channel, $inwho if mIRC is updating its address list, $false otherwise
logfilethe logfile's path and filename for this channel
stamp$true when timestamps are enabled, $false if not
ibl$true if mIRC knows the banlist for this channel, $inmode if it's currently updating its banlist, $false if it doesn't
statusyour status on that channel (e.g. joined or kicked)
inwho$true when mIRC is currently processing a /who request for that channel
widthe window ID for this channel
hwndthe window handle for this channel, can be used in DLLs

$chan(#help.script) returns #help.script if you're on that channel, $null otherwise $chan(#help.script).topic returns the topic, which is currently set for #help.script