local iIndex = nil |
local _, nGeneral = GetChannelName(1) |
local _, nTrade = GetChannelName(2) |
local grIndex, nGuildRecruitment = GetChannelName("GuildRecruitment") |
local grIndex, nGuildRecruitment = GetChannelName("GuildRecruitment - City") |
if nGuildRecruitment and nGuildRecruitment:match("^Guild") and (DirtyRecruit.PerPlayer.Spam == "all" or DirtyRecruit.PerPlayer.Spam == "guild") then |
iIndex = grIndex |
elseif nTrade and nTrade:match("^Trade") and (DirtyRecruit.PerPlayer.Spam == "all" or DirtyRecruit.PerPlayer.Spam == "trade") then |