Print function question

1 Blood Elf Paladin
I'm playing with an addon that prints a message on a regular basis, and for some reason if I comment out or remove the message (but leave the print in place) the addon goes screwy. Is there anyway to redirect the print output so it doesn't go to your main chat window (so I can avoid changing all my chat settings on all my characters to avoid that spam)?
Reply Quote
86 Tauren Warrior
if you want it to hide, you do the comment code before the command


--print("some text")

if you want to choose which chat frame it goes to, replace it with

ChatFramex:AddMessage("sometext") where x is 1 thorugh 10 (the chat frame number)

if you commented it out already and its still showing, its because that is not the print command thats printing.
Reply Quote
MVP - World of Warcraft
85 Human Warlock
It's also possible to change the exact behavior of print(...) with getprinthandler() and setprinthandler(func), or put a local function print() in oyur add-on that provides specialized handling.
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Explain (256 characters max)