Wikia

WoWWiki

Changes: API IsVoiceChatAllowed

Edit

Back to page

m
(Rewritten)
 
Line 1: Line 1:
{{stub/API}}
+
{{wowapi}}
{{cleanup}}
 
returns TRUE if Voice Chat is enabled on the server, FALSE if not
 
   
[[Category:World of Warcraft API]]
+
isallowed = IsVoiceChatAllowed();
  +
  +
----
  +
;''Arguments''
  +
  +
:''none''
  +
  +
----
  +
;''Returns''
  +
  +
:;isallowed : Boolean - 1 (true) if Voice Chat is enabled on the server, nil (false) otherwise.
  +
  +
----
  +
;''Example''
  +
isallowed = IsVoiceChatAllowed();
  +
if (isallowed) then
  +
message("Voice Chat is enabled on the server.");
  +
end
  +
else
  +
message("Voice Chat isn't enabled on the server.");
  +
end

Latest revision as of 22:37, August 6, 2008

WoW API < IsVoiceChatAllowed

isallowed = IsVoiceChatAllowed();


Arguments
none

Returns
isallowed 
Boolean - 1 (true) if Voice Chat is enabled on the server, nil (false) otherwise.

Example
 isallowed = IsVoiceChatAllowed();
 if (isallowed) then
    message("Voice Chat is enabled on the server.");
  end
 else
    message("Voice Chat isn't enabled on the server.");
 end

Around Wikia's network

Random Wiki