mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 20:18:53 +00:00
29 lines
665 B
C#
29 lines
665 B
C#
using Shared;
|
|
using System;
|
|
|
|
namespace LME.Common.Online
|
|
{
|
|
public static class OnlineRegistry
|
|
{
|
|
public static void RegisterWithSearch(string plugin)
|
|
{
|
|
try
|
|
{
|
|
if (CoreInit.conf.online.with_search == null)
|
|
return;
|
|
|
|
foreach (var item in CoreInit.conf.online.with_search)
|
|
{
|
|
if (string.Equals(item, plugin, StringComparison.OrdinalIgnoreCase))
|
|
return;
|
|
}
|
|
|
|
CoreInit.conf.online.with_search.Add(plugin);
|
|
}
|
|
catch
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|