Is your "filter" really working?
As far as I am aware the chat log automatically logs all channels. I don't think you can influence that from the addon side, as the logging is done in C and most likely before you see the message in Lua. I am also not sure if shutting off the log in cyrodiil is desireable, as it would again affect all channels.
p.s. You do not need ; when you put if/else statements into one line:
Lua Code:
if something then doThis() else doThat() end
works the same with or without semicolon.