BadBoy_Ignore

181k Downloads

Ignore by name

Natlyz opened this issue ยท 2 comments

commented

Hello!

Please, let us ignore people by inputing their name (like we can input key words in BadBoy_CCleaner), not select from the drop down menu. e.g. we had a guild leaver who basically called everyone dogs and scum and left after 2 days in the guild when we failed to provide his majesty with the Curve achievement, I want to ignore him, but he's not on the drop down list.

Hope you'll like the idea and it's not hard to implement.

Thanks ๐Ÿ˜Š

commented

I worked around this limitation by adding the following at the end of BadBoy_Ignore.lua:

function SlashCmdList.BBIGNORE(msg)
	if msg == nil or msg == "" then
		print("[BadBoy] Player name is required")
		return
	end

    local player = msg
    if not find(player, "-", nil, true) then
        local realm = GetRealmName()
        player = player .. "-" .. realm
    end

	if BADBOY_IGNORE[player] then
		print("[BadBoy] " .. player .. " is already ignored")
		return
	end

    print("[BadBoy] Ignoring " .. player)
    BADBOY_IGNORE[player] = true
end
SLASH_BBIGNORE1 = "/bbi"

function SlashCmdList.BBUNIGNORE(msg)
	if msg == nil or msg == "" then
		print("[BadBoy] Player name is required")
		return
	end

    local player = msg
    if not find(player, "-", nil, true) then
        local realm = GetRealmName()
        player = player .. "-".. realm
    end

	if not BADBOY_IGNORE[player] then
		print("[BadBoy] " .. player .. " isn't ignored")
		return
	end

    print("[BadBoy] Unignoring " .. player)
    BADBOY_IGNORE[player] = nil
end
SLASH_BBUNIGNORE1 = "/bbu"

With this, you can type /bbi Player (or /bbi Player-Realm) to ignore someone, and /bbu Player to remove them from ignore.

commented

Thanks!