Totenfluch / SmartLinkRemover

Plugin for Sourcemod that removes Links from Player Names with Regex
20 stars 6 forks source link

WhiteList does not support URL Directions #23

Open crashzk opened 5 years ago

crashzk commented 5 years ago

Plugin is blocking all links, even though I put the link in WhiteList with flag.

I put a link so that only players with privileges are allowed to use, but even having privileges the plugin removes the nick link

No error in the server error log.

MitchDizzle commented 5 years ago

Provide more information, like what they are setting it to and what the config has it set to.

crashzk commented 5 years ago

One of my privileged players has the following nickname: twitch.tv/rayanefps

I configured the SmartLink_whitelist.cfg file as follows:

"SmartLinkRemover Whitelist"
{
// "URL" "FLAGS"
"zkservidores.com" ""
"twitch.tv/rayanefps" "b"
}

Link zkservidores.com can use normally, without problem.

Now the twitch.tv/rayanefps link that needs the flag b even the player having privileges does not let you use URL Removed.

We have already tried to put the nick and config in the following ways:

https://www.twitch.tv/rayanefps
http://www.twitch.tv/rayanefps
https://twitch.tv/rayanefps
http://twitch.tv/rayanefps
twitch.tv/rayanefps
www.twitch.tv/rayanefps

None of them works if you put flag.

crashzk commented 5 years ago

Any news on that? You still have the problem with WhiteList.

B3none commented 5 years ago

Give it a go with just twitch.tv in your config file and let me know if that works. Perhaps the / could be throwing things off but I'm really not sure.

crashzk commented 4 years ago

@b3none sorry for the delay, I came back now and tested it thoroughly.

I configured SmartLink_whitelist.cfg as follows:

"SmartLinkRemover Whitelist"
{
    "zkservidores.com"                                  ""
    "twitch.tv"                                         "a"
    "youtube.com"                                       "a"
}

Nicknames with link zkservidores.com all can use without problem, so far so good.

However the other links that I set up with flags, even though the players have privileges he can't use, the plugin removes the link.

I took a print of the BUG: Screenshot_1

What I also realized, I have root access, I can use links without problems, but if the player has no root he can not use it, as you can see in the print.

Twitch link you tried to use would be this: twitch.tv/dolin03110

What could be, some config error even on my part? Would you really be a BUG?

I'm waiting, thanks in advance!

@Totenfluch

crashzk commented 4 years ago

Any chance of fixing this problem?

freakexeuLow commented 4 years ago

I would also like to know if the plugin is still supported. I have the same problem as the crashzk user

borzaka commented 4 years ago

Basically whitelist not working for common URLs like "twitch.tv", "youtube.com", "facebook.com"? I want them to allow without any flags.

"SmartLinkRemover Whitelist"
{
        "twitch.tv"     ""
        "mixer.com"     ""
        "youtube.com"   ""
        "dlive.tv"      ""
        "facebook.com"  ""
        "fb.com"        ""
}

It's not working, the twitch.tv/kisoli01 name became just twitch twitch.tv/sleepyay also became twitch

crashzk commented 4 years ago

According to the plugin code: https://github.com/Totenfluch/SmartLinkRemover/blob/9978991b12aee62cd4e087de227d569b9c2651c0/scripting/SmartLinkRemover.sp#L161 We have a CVAR to control the immunity sm_smartlinkremover try to add it to the overrides and see if it resolves.

However, with that every player with the privileges is immune to using any link in the nickname.

crashzk commented 3 years ago

Any news about this BUG?

Config file SmartLink_whitelist.cfg still does not work, players with privileges and with access to certain links cannot use it, it is still removed.