WoWInterface SVN DirtyRecruit

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 4 to Rev 5
    Reverse comparison

Rev 4 → Rev 5

trunk/DirtyRecruit/DirtyRecruit.lua
40,9 → 40,9
local iIndex = nil
local _, nGeneral = GetChannelName(1)
local _, nTrade = GetChannelName(2)
local _, nGuildRecruitment = GetChannelName(6)
if nGuildRecruitment and nGuildRecruitment:match("^Guild") and (DirtyRecruit.PerPlayer.Spam == "all" or DirtyRecruit.PerPlayer.Spam == "recruit") then
iIndex = 6
local _, nGuildRecruitment = GetChannelName(4)
if nGuildRecruitment and nGuildRecruitment:match("^Guild") and (DirtyRecruit.PerPlayer.Spam == "all" or DirtyRecruit.PerPlayer.Spam == "guild") then
iIndex = 4
elseif nTrade and nTrade:match("^Trade") and (DirtyRecruit.PerPlayer.Spam == "all" or DirtyRecruit.PerPlayer.Spam == "trade") then
iIndex = 2
elseif nGeneral and nGeneral:match("^General") and (DirtyRecruit.PerPlayer.Spam == "all" or DirtyRecruit.PerPlayer.Spam == "general") then
175,6 → 175,14
elseif cmd == "spam" and arg then
local uSpam = strlower(arg)
if uSpam == "all" or uSpam == "guild" or uSpam == "trade" or uSpam == "major" or uSpam == "general" then
local id = GetChannelName(4)
if uSpam == "all" or uSpam == "guild" then
if id == 0 then
JoinChannelByName("GuildRecruitment")
end
elseif id > 0 then
LeaveChannelByName("GuildRecruitment")
end
DirtyRecruit.Print("spam set to "..uSpam)
DirtyRecruit.PerPlayer.Spam = uSpam
DirtyRecruit.UpdateSettings()