Difference between revisions of "$status"

From Scriptwiki
Jump to: navigation, search
 
m
 
Line 1: Line 1:
 
Returns server connection status.
 
Returns server connection status.
 +
$status
  
$status
+
* This function has no parameters.
  
 +
== Example ==
  
 
This identifier can return several values:
 
This identifier can return several values:
* connected - if your mIRC is connected (this includes the [[On_connect|On connect event]])
+
* '''connected''' - if your mIRC is connected (this includes the [[On_connect|On connect event]].)
* disconnected - if your mIRC is not connected  
+
* '''disconnected''' - if your mIRC is not connected.
* connecting - during connection process (between ''Connecting to ...'' and ''Looking up hostname'')
+
* '''connecting''' - during connection process (between ''Connecting to ...'' and ''Looking up hostname''.)
* disconnecting - during disconnect (between [[quit|/quit]] and ''* Disconnected'')
+
* '''disconnecting''' - during disconnect (between [[quit|/quit]] and ''* Disconnected''.)
* closing - in an [[On_disconnect|On disconnect event]]
+
* '''closing''' - in an [[On_disconnect|On disconnect event]] if the status window being closed is the cause of the disconnection.
  
 
[[Category:Other Identifiers]]
 
[[Category:Other Identifiers]]

Latest revision as of 11:24, 12 April 2008

Returns server connection status.

$status
  • This function has no parameters.

Example

This identifier can return several values:

  • connected - if your mIRC is connected (this includes the On connect event.)
  • disconnected - if your mIRC is not connected.
  • connecting - during connection process (between Connecting to ... and Looking up hostname.)
  • disconnecting - during disconnect (between /quit and * Disconnected.)
  • closing - in an On disconnect event if the status window being closed is the cause of the disconnection.