$chan (remote)

From Scriptwiki
Revision as of 23:05, 8 April 2008 by Daveoh (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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