Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

Regex Filtering


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[TF2] Regex Filter

v2.1.0

68747470733a2f2f692e696d6775722e636f6d2f

Description:
A plugin created by Keith Warren [Sky Guardian], modified and maintained by myself.
This plugin is pretty much a direct upgrade to this: https://forums.alliedmods.net/showthread.php?t=71867.

Check out the documentation there, since I feel they've done a nice job of detailing it.
One difference is that this plugin allows the use of "namefilter" and "commandfilter" in the config file, not just "chatfilter"

I have also included a method of replacing matched name and chat filters through the use of "replace" "remove". It's more explanatory by looking at the config I use.

For more thorough information, please see my github for this project:
https://github.com/JoinedSenses/TF2-Regex-Filter

To compile, you will need MoreColors and Sourcemod-misc


FYI: The "blank" section at the top of the config is intended. There is some weird bug occuring when it is removed, more than likely due to the funky characters used.
If you'd like to see a demo, you can hang out in irc.gamesurge.net #ecj-test, or request an invite to my discord.


What this plugin does:
Serves as a filter for names, chat, and commands using a config which allows for regex.
Only tested in TF2

If you are unfamilair with regex, check out these websites:
http://www.rexegg.com/regex-quickstart.html
https://www.regular-expressions.info/
https://regex101.com


This plugin has included features which integrate the use of SourceIRC when connecting multiple servers.
Included IRC Features:
* Method to relay 'connect' messages to a main IRC channel
* Method to relay filtered names and chat messages to a seperate channel for debugging/analysis.
* IRC relayed messages are formatted specifically with Discord in mind if a relay bot is used (Servers -> IRC -> Discord)

68747470733a2f2f692e696d6775722e636f6d2f


ConVars:
sm_regexfilters_status "1" // Enable/Disable plugin
sm_regexfilters_config_path "configs/regexfilters/" // Don't touch. Config path of filters
sm_regexfilters_check_chat "1" // Enable chat checking
sm_regexfilters_check_commands "1" // Enable command checking
sm_regexfilters_check_names "1" // Enable name checking
sm_regexfilters_irc_enabled "0" // Enable use of IRC relay
sm_regexfilters_irc_main "" // Public server 'connect' messages are relayed to. Dont include the #
sm_regexfilters_irc_filtered "" // Hidden channel for filtered message and name relay. Don't include the #


Installation:
* Install regexfiltering.smx into your plugins folder.
* Either install the included config to addons/sourcemod/configs/regexfilters/
or create your own at that location.
* Optional: Install and setup SourceIRC for the IRC relay functionality https://forums.alliedmods.net/showthread.php?p=1204192


To Do:
  • None at the moment besides maintaining the regexfilters.cfg


Changelog:
  • v2.1.0 [4/20/18]
    • Initial public release
.

Attached Files
File Type: sp Get Plugin or Get Source (regexfiltering.sp - 25.1 KB)
File Type: smx regexfiltering.smx (22.9 KB)
File Type: cfg regexfilters.cfg (13.8 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...