Project

General

Profile

$chan » History » Version 26

Per Amundsen, 02/16/2023 09:21 PM

1 1 Per Amundsen
_Added in 1.5_
2
3
*$chan*
4
5 11 Per Amundsen
Returns the name of the channel for a specific [[Scripting_Events|event]]. For all non-channel events [[$chan]] will be [[$null]].
6 1 Per Amundsen
7 10 Per Amundsen
-----------------------------------------------------------------------------
8
9 13 Per Amundsen
*$chan(N|#|@<wid>)*
10 1 Per Amundsen
11
Returns information about channel # or Nth channel.
12
13 14 Per Amundsen
_Same as [[$channel]]._
14
15 1 Per Amundsen
*Parameters*
16
17 26 Per Amundsen
table(ktable).
18
|*Parameter*|*Description*|
19
| N | The Nth channel. |
20
| <notextile>#</notextile> | The channel name. |
21
| @<wid> | Channel matching a [[$wid<notextile>|</notextile>window id]]. |
22 1 Per Amundsen
23
*Properties*
24
25 26 Per Amundsen
table(ktable).
26
|*Property*|*Description*|
27
| .topic | Returns the channel topic. |
28
| .topicsetby | Returns the nick who set the current channel topic. *(AdiIRC only)* |
29
| .topicsetat | Returns the time the current channel topic was set. *(AdiIRC only)* |
30
| .mode | Returns the channel modes. |
31
| .rawmode | Returns all channel modes and parameters. *(AdiIRC only)* |
32
| .key | Returns the channel key. |
33
| .limit | Returns the channel user limit. |
34
| .logfile | Returns the channel log filename. (if any) |
35
| .stamp | Returns [[$true]] if timestamps is enabled for this channel, otherwise [[$false]]. |
36
| .status | Returns the channel status, Parted/Joined/Kicked/Joining. |
37
| .wid | Returns the associated window id. |
38
| .cid | Returns the associated connection id. |
39
| .hwnd | Returns associated window handle. |
40
| .inwho | Returns [[$true]] if you sent a /who #channel to the server to fill the IAL with addresses from that channel, and the /who is still in progress, otherwise [[$false]]. |
41
| .banlist | Returns [[$true]] if the channel ban list is synced for this channel, otherwise [[$false]]. |
42
| .ibl | Returns [[$true]] if the channel ban list is synced for this channel, otherwise [[$false]]. |
43
| .iel | Returns [[$true]] if the channel exception list is synced for this channel, otherwise [[$false]]. |
44
| .iil | Returns [[$true]] if the channel invite list is synced for this channel, otherwise [[$false]]. |
45
| .iql | Returns [[$true]] if the channel quiet list is synced for this channel, otherwise [[$false]]. |
46
| .ial | Returns [[$true]] if all nicks in the channel has a hostname/address otherwise [[$false]]. |
47
| .idle | Returns the amount of time the channel has been idle. This does not include entries made from the local AdiIRC client. |
48
| .lastnick | Returns the last nick who spoke on the channel, returns [[$null]] if last message didn't have a nick. *(AdiIRC only)* |