<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.anope.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.anope.org/index.php?action=history&amp;feed=atom&amp;title=2.0%2FModules%2Fm_rewrite</id>
		<title>2.0/Modules/m rewrite - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.anope.org/index.php?action=history&amp;feed=atom&amp;title=2.0%2FModules%2Fm_rewrite"/>
		<link rel="alternate" type="text/html" href="https://wiki.anope.org/index.php?title=2.0/Modules/m_rewrite&amp;action=history"/>
		<updated>2026-05-29T18:35:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.4</generator>

	<entry>
		<id>//wiki.anope.org/index.php?title=2.0/Modules/m_rewrite&amp;diff=877&amp;oldid=prev</id>
		<title>Azander at 21:08, 12 May 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.anope.org/index.php?title=2.0/Modules/m_rewrite&amp;diff=877&amp;oldid=prev"/>
				<updated>2014-05-12T21:08:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:08, 12 May 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Language|2.0/Modules/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;m_dns&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Language|2.0/Modules/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m_rewrite&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Header|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;m_dns&lt;/del&gt;|Extra_Modules|Anope}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Header|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m_rewrite&lt;/ins&gt;|Extra_Modules|Anope}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Azander</name></author>	</entry>

	<entry>
		<id>//wiki.anope.org/index.php?title=2.0/Modules/m_rewrite&amp;diff=876&amp;oldid=prev</id>
		<title>Azander: Created page with &quot;{{Language|2.0/Modules/m_dns}} {{Header|m_dns|Extra_Modules|Anope}}   == &lt;div class=&quot;moduleheader&quot;&gt;Description&lt;/div&gt; == Allows you to re-write any command that it sent to/from...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.anope.org/index.php?title=2.0/Modules/m_rewrite&amp;diff=876&amp;oldid=prev"/>
				<updated>2014-05-12T21:08:07Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language|2.0/Modules/m_dns}} {{Header|m_dns|Extra_Modules|Anope}}   == &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Description&amp;lt;/div&amp;gt; == Allows you to re-write any command that it sent to/from...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language|2.0/Modules/m_dns}}&lt;br /&gt;
{{Header|m_dns|Extra_Modules|Anope}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Description&amp;lt;/div&amp;gt; ==&lt;br /&gt;
Allows you to re-write any command that it sent to/from clients.&lt;br /&gt;
&lt;br /&gt;
;'''command {...}''' :The rewritten command&lt;br /&gt;
:;'''service=''' :The service having it's command re-written.&lt;br /&gt;
:;'''rewrite=''' :Enable or disable the individual re-write of the command.&lt;br /&gt;
:;'''rewrite_source=''' :What to watch for to rewrite.&lt;br /&gt;
:;'''rewrite_target=''' :What to change the command to.&lt;br /&gt;
:;'''rewrite_description=''' :Description of the re-write.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Examples&amp;lt;/div&amp;gt; ==&lt;br /&gt;
Original command typed by user: '''/msg ChanServ CLEAR #myChannel USERS'''&lt;br /&gt;
&lt;br /&gt;
What would be seen by Chanserv: '''/msg ChanServ KICK #myChannel *'''&lt;br /&gt;
&lt;br /&gt;
Command configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;code&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
command {&lt;br /&gt;
     service= &amp;quot;ChanServ&amp;quot;;&lt;br /&gt;
     rewrite = true;&lt;br /&gt;
     rewrite_source = &amp;quot;CLEAR $ USERS&amp;quot;;&lt;br /&gt;
     rewrite_target = &amp;quot;KICK $1 *&amp;quot;;&lt;br /&gt;
     rewrite_description = &amp;quot;Clears all users from a channel&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;div class=&amp;quot;moduleheader&amp;quot;&amp;gt;Default Configuration&amp;lt;/div&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;code&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * m_rewrite&lt;br /&gt;
 *&lt;br /&gt;
 * Allows rewriting commands sent to/from clients.&lt;br /&gt;
 */&lt;br /&gt;
#module { name = &amp;quot;m_rewrite&amp;quot; }&lt;br /&gt;
#command&lt;br /&gt;
{&lt;br /&gt;
        service = &amp;quot;ChanServ&amp;quot;; name = &amp;quot;CLEAR&amp;quot;; command = &amp;quot;rewrite&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        /* Enable m_rewrite. */&lt;br /&gt;
        rewrite = true&lt;br /&gt;
&lt;br /&gt;
        /* Source message to match. A $ can be used to match anything. */&lt;br /&gt;
        rewrite_source = &amp;quot;CLEAR $ USERS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        /*&lt;br /&gt;
         * Message to rewrite the source message to. A $ followed by a number, eg $0, gets&lt;br /&gt;
         * replaced by the number-th word from the source_message, starting from 0.&lt;br /&gt;
         */&lt;br /&gt;
        rewrite_target = &amp;quot;KICK $1 *&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        /*&lt;br /&gt;
         * The command description. This only shows up in HELP's output.&lt;br /&gt;
         * Comment this option to prevent the command from showing in the&lt;br /&gt;
         * HELP command.&lt;br /&gt;
         */&lt;br /&gt;
        rewrite_description = &amp;quot;Clears all users from a channel&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Azander</name></author>	</entry>

	</feed>