Difference between revisions of "$cmdbox"

From Scriptwiki
Jump to: navigation, search
m (see also didn't even have $cmdline linked :|)
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 17: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-
}