PrintMSG

Displays a custom message to the default chat frame, for the user to see. A prefix and suffix can also be added, with ease, in the function. This is just to save you from typing out, DEFAULT_CHAT_FRAME:AddMessage("Prefix " .. "Hello world!" .. " Suffix", 1, 1, 1); everytime you want to tell the user something.

_printMSG("Hello world!");

Arguments

 * msg : String - This is the message you wish to display.

Returns

 * nil

Example
_printMSG("Hello world!");

Result
Displays the words ''Prefix Hello world! Suffix'', in the default chat frame.

Code
function _printMSG(msg) DEFAULT_CHAT_FRAME:AddMessage("Prefix " .. msg .. " Suffix", 1, 1, 1); end