<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Anti-Channel_Advertisement</id>
	<title>Anti-Channel Advertisement - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Anti-Channel_Advertisement"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Anti-Channel_Advertisement&amp;action=history"/>
	<updated>2026-06-04T01:33:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Anti-Channel_Advertisement&amp;diff=4809&amp;oldid=prev</id>
		<title>Aca20031 at 22:26, 10 May 2008</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Anti-Channel_Advertisement&amp;diff=4809&amp;oldid=prev"/>
		<updated>2008-05-10T22:26:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The following is a quick script created to punish users for advertising their channel if they are not voices or higher.&lt;br /&gt;
&lt;br /&gt;
 alias -l channels { &lt;br /&gt;
   ; Put each channel you wish to protect here, seperated by a comma&lt;br /&gt;
   return #MyChannel1,#MyChannel2&lt;br /&gt;
 }&lt;br /&gt;
 alias -l punish {&lt;br /&gt;
   ; Put the command to perform when someone advertises here, the default is a five minute ban&lt;br /&gt;
   ; $regml(1) is the first channel advertised. &lt;br /&gt;
    ban -ku300 $chan $nick 2 Advertising $regml(1)&lt;br /&gt;
 }&lt;br /&gt;
 ; This is the event&lt;br /&gt;
 on @*:TEXT:*:$($channels): {&lt;br /&gt;
   ; Checks if the text matches the regular expression, and executes the punishment if they are regular users on the channel&lt;br /&gt;
   if ($nick isreg # &amp;amp;&amp;amp; $regex($1-,/(?: |^)( $+ $chantypes $+ \S+)\b(?: |$)/)) punish&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Archive]]&lt;/div&gt;</summary>
		<author><name>Aca20031</name></author>
	</entry>
</feed>