$chan (remote): Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Tovrleaf (talk | contribs)
No edit summary
 
Daveoh (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
  $chan
  $chan


It takes no parameters.
* This function has no parameters.


on *:text:hello:#mIRC:{ [[msg]] $chan [[$nick (remote)|$nick]] hello, and welcome to $chan $+ ! }
== Example ==


You can also use # to evaluate channel name. Ex:
[[on text|on *:TEXT:Hello:#mIRC:]]{ [[msg]] $chan Hello [[$nick (remote)|$nick]] $+ , welcome to $chan }
  welcome to $chan
 
  welcome to #
The channel name is also stored in #, therefore $chan and # both return the same values.
would return to same value.
  Welcome to $chan   ;these are both
  Welcome to #       ;the same message


== See Also ==
== See Also ==


* [[$target]]
* [[$active]]
* [[$active]]


[[Category:Remote Identifiers]]
[[Category:Remote Identifiers]]

Latest revision as of 22:05, 8 April 2008

Returns the name of the channel for a specific event. For all non-channel events $chan will be $null.

$chan
  • This function has no parameters.

Example

on *:TEXT:Hello:#mIRC:{ msg $chan Hello $nick $+ , welcome to $chan }

The channel name is also stored in #, therefore $chan and # both return the same values.

Welcome to $chan    ;these are both
Welcome to #        ;the same message

See Also