WoW:API LoggingChat: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{API | {{WoW API}} | ||
isLogging = LoggingChat([newState]) | |||
(Returns new state (or current state if no argument)) | |||
returns NIL if logging currently is disabled, and 1 (one) if logging is enabled | |||
added in patch 1.7.0 | |||
Codesnippet: | |||
if (LoggingChat()) then | |||
DEFAULT_CHAT_FRAME:AddMessage("chatlog IS running",1,0,0); | |||
else | |||
DEFAULT_CHAT_FRAME:AddMessage("chatlog IS NOT running... starting"); | |||
LoggingChat(1); | |||
DEFAULT_CHAT_FRAME:AddMessage("Chat beeing logged to logs\\WOWChatLog.txt"); | |||
end | |||
--[[User:Agge|Agge]] 11:11, 31 Jan 2006 (EST) |
Revision as of 22:31, 31 January 2006
isLogging = LoggingChat([newState])
(Returns new state (or current state if no argument))
returns NIL if logging currently is disabled, and 1 (one) if logging is enabled
added in patch 1.7.0
Codesnippet:
if (LoggingChat()) then DEFAULT_CHAT_FRAME:AddMessage("chatlog IS running",1,0,0); else DEFAULT_CHAT_FRAME:AddMessage("chatlog IS NOT running... starting"); LoggingChat(1); DEFAULT_CHAT_FRAME:AddMessage("Chat beeing logged to logs\\WOWChatLog.txt"); end
--Agge 11:11, 31 Jan 2006 (EST)