<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_HostBanUser</id>
	<title>Bz HostBanUser - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bzflag.org/index.php?action=history&amp;feed=atom&amp;title=Bz_HostBanUser"/>
	<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_HostBanUser&amp;action=history"/>
	<updated>2026-04-06T16:01:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.bzflag.org/index.php?title=Bz_HostBanUser&amp;diff=8061&amp;oldid=prev</id>
		<title>Sigonasr2: Create API Function Page. Include Example.</title>
		<link rel="alternate" type="text/html" href="https://wiki.bzflag.org/index.php?title=Bz_HostBanUser&amp;diff=8061&amp;oldid=prev"/>
		<updated>2011-10-19T08:30:05Z</updated>

		<summary type="html">&lt;p&gt;Create API Function Page. Include Example.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{apicall&lt;br /&gt;
| name        = bz_HostBanUser&lt;br /&gt;
| returns     = Whether or not the ban was executed successfully.&lt;br /&gt;
| returntype  = bool&lt;br /&gt;
| description = Sets up a new Host ban Rule in the ban list.&lt;br /&gt;
| param1      = bannedByIndex&lt;br /&gt;
| param1type  = int&lt;br /&gt;
| param1desc  = The player ID that is banning the IP Address. &amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; This has to be a player that is currently on the server, so at least one player must be present for a ban to be created.&lt;br /&gt;
| param2      = hostmask&lt;br /&gt;
| param2type  = const char*&lt;br /&gt;
| param2desc  = The Hosting address of the player to be banned. Host bans use wildcard (*) character also, such as *.myhost.biz&lt;br /&gt;
| param3      = duration&lt;br /&gt;
| param3type  = int&lt;br /&gt;
| param3desc  = The amount of time in minutes to ban the host.&lt;br /&gt;
| param4      = reason&lt;br /&gt;
| param4type  = const char*&lt;br /&gt;
| param4desc  = The reason that is displayed to the banned user upon failure to join.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
 bz_HostBanUser(0,&amp;quot;*.myhost.biz&amp;quot;,3600,&amp;quot;This host abused the server.&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Sigonasr2</name></author>
	</entry>
</feed>