ArgumentNullException in AdvertisementsFixed
Hey, i got the following error everytime a user write a message.
[Error] Failed to call hook 'Advertisements' on plugin 'UFilter v5.0.5' (ArgumentNullException: Value cannot be null.
Parameter name: input)
  at System.Text.RegularExpressions.Regex.Matches (System.String input) [0x00003] in <4b9f316768174388be8ae5baf2e6cc02>:0 
  at Oxide.Plugins.UFilter.Advertisements (System.String text) [0x00000] in <24f1c00b43c4421ab398a4b327616dff>:0 
  at Oxide.Plugins.UFilter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0017d] in <24f1c00b43c4421ab398a4b327616dff>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​
Are you still having this issue? I'd need a little more information, such as what your config looks like, example messages that users typed, etc.
this come on all messages. if i use Babel and BabelChat i give you the configs:
config/BabelChat.json
{
  "Force default server language (true/false)": false,
  "Log chat messages (true/false)": false,
  "Show original message (true/false)": true,
  "Use random name colors (true/false)": false
}​
config/Babel.json
{
  "API key (if required)": "myapikey",
  "Translation service": "yandex"
}​
config/UFilter.json
{
  "Check for advertising (true/false)": true,
  "Check for profanity (true/false)": true,
  "Check player chat (true/false)": true,
  "Check player names (true/false)": true,
  "Log advertising (true/false)": true,
  "Log profanity (true/false)": true,
  "Log to console (true/false)": false,
  "Log to file (true/false)": false,
  "Warn player in chat (true/false)": true,
  "Action for advertising": "block",
  "Action for profanity": "censor",
  "Word or symbol to use for censoring": "*",
  "Allowed advertisements": [],
  "Allowed profanity": []
}​
Locked automatically