[#BanMan-2constructor]
= xref:BanMan.adoc[BanMan]::BanMan
:relfileprefix: ../
:mrdocs:

Constructs the ban manager and loads any existing banlist from disk&period;

== Synopsis

Declared in `&lt;banman&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
BanMan(
    xref:fs/path.adoc[fs::path] ban&lowbar;file,
    xref:CClientUIInterface.adoc[CClientUIInterface]* client&lowbar;interface,
    int64&lowbar;t default&lowbar;ban&lowbar;time);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ban&lowbar;file*
| Path to the banlist file on disk&period;
| *client&lowbar;interface*
| UI interface notified when the banlist changes, or nullptr&period;
| *default&lowbar;ban&lowbar;time*
| Default ban duration in seconds&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
