$cmdbox: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
m see also didn't even have $cmdline linked :|
Daveoh (talk | contribs)
m removed See Also and Aliases category
 
Line 1: Line 1:
Returns $true if a command or script was initiated via the command editbox in a channel window.
Returns $true if a command or script was initiated via the command editbox in a channel window.
  $cmdbox
  $cmdbox
* This function has no parameters.
== Example ==
== Example ==
  [[alias]] whois {
  [[alias]] whois {
Line 7: Line 8:
   !whois $$1-
   !whois $$1-
  }
  }
== See Also ==
* [[$cmdline]]


[[Category:Remote Identifiers]][[Category:Aliases]]
[[Category:Other Identifiers]]

Latest revision as of 16:29, 29 November 2009

Returns $true if a command or script was initiated via the command editbox in a channel window.

$cmdbox
  • This function has no parameters.

Example

alias whois {
  ;;If user types /whois then
  if ($cmdbox && $1 && !$2) { tokenize 32 $1 $1 }
  !whois $$1-
}