<?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=How_do_I_reop_or_unban_myself</id>
	<title>How do I reop or unban myself - 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=How_do_I_reop_or_unban_myself"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;action=history"/>
	<updated>2026-05-14T22:59:55Z</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=How_do_I_reop_or_unban_myself&amp;diff=3831&amp;oldid=prev</id>
		<title>Saturn: typo, thanks FIQ</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=3831&amp;oldid=prev"/>
		<updated>2011-01-01T14:16:34Z</updated>

		<summary type="html">&lt;p&gt;typo, thanks FIQ&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:16, 1 January 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You might have seen the { } format before. Inside those, we can list as many commands as we want. Let&amp;#039;s say your channel has [[Q]]. One of the commands we need would be: &amp;#039;&amp;#039;msg Q op #mychan&amp;#039;&amp;#039;. Instead of #mychan, we can use another identifier. [[$chan]] returns the channel all this happens on, so let&amp;#039;s change the command to &amp;#039;&amp;#039;msg Q op $chan&amp;#039;&amp;#039;. This way you can use the same command for more than 1 channel.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You might have seen the { } format before. Inside those, we can list as many commands as we want. Let&amp;#039;s say your channel has [[Q]]. One of the commands we need would be: &amp;#039;&amp;#039;msg Q op #mychan&amp;#039;&amp;#039;. Instead of #mychan, we can use another identifier. [[$chan]] returns the channel all this happens on, so let&amp;#039;s change the command to &amp;#039;&amp;#039;msg Q op $chan&amp;#039;&amp;#039;. This way you can use the same command for more than 1 channel.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Now we have another problem. If we&#039;d use on 1:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;OP&lt;/del&gt;:#mychan:{ msg Q op $chan }, it would send the message if someone else gets deopped too. That&#039;s why we&#039;re gonna limit it using an [[If-Then-Else|if-statement]]. The if-statement basically checks something. If what it checks is true, it executes some commands. If not, it either does nothing or goes to an else part. For now we won&#039;t use else parts.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Now we have another problem. If we&#039;d use on 1:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;DEOP&lt;/ins&gt;:#mychan:{ msg Q op $chan }, it would send the message if someone else gets deopped too. That&#039;s why we&#039;re gonna limit it using an [[If-Then-Else|if-statement]]. The if-statement basically checks something. If what it checks is true, it executes some commands. If not, it either does nothing or goes to an else part. For now we won&#039;t use else parts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;What we wanted to check was if it was you who got deopped. As the help on the [[On_op|op]]/[[On_deop|deop]] event says, [[$opnick]] returns the person/nick who get&amp;#039;s opped/deopped in those events. We&amp;#039;ll need to use another identifier: $me. $me simply returns your own nickname. The if-statement we need would become &amp;#039;&amp;#039;if ($opnick == $me) { commands }&amp;#039;&amp;#039;. The == is an operator meaning &amp;#039;equal to&amp;#039; and that&amp;#039;s exactly what we want: &amp;quot;if (the person who gets deopped is equal to myself)&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;What we wanted to check was if it was you who got deopped. As the help on the [[On_op|op]]/[[On_deop|deop]] event says, [[$opnick]] returns the person/nick who get&amp;#039;s opped/deopped in those events. We&amp;#039;ll need to use another identifier: $me. $me simply returns your own nickname. The if-statement we need would become &amp;#039;&amp;#039;if ($opnick == $me) { commands }&amp;#039;&amp;#039;. The == is an operator meaning &amp;#039;equal to&amp;#039; and that&amp;#039;s exactly what we want: &amp;quot;if (the person who gets deopped is equal to myself)&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Saturn</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=2783&amp;oldid=prev</id>
		<title>Albie: replaced L with Q</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=2783&amp;oldid=prev"/>
		<updated>2008-04-06T21:24:57Z</updated>

		<summary type="html">&lt;p&gt;replaced L with Q&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:24, 6 April 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&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=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;This tutorial will help you create a script that gives you some basic protection. Whenever someone deops you in your channel, it will automatically ask &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[L]] or &lt;/del&gt;[[Q]] to reop you again. Also, when someone bans you, it will attempt to unban you again. Difficulty: easy&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;This tutorial will help you create a script that gives you some basic protection. Whenever someone deops you in your channel, it will automatically ask [[Q]] to reop you again. Also, when someone bans you, it will attempt to unban you again. Difficulty: easy&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First we&amp;#039;ll look at how [[mIRC]] scripting actually handles these things. Whenever something happens (a message, a mode change, a kick and so on), your script can react to this. What you need are the so called [[:Category:remote|remote]] [[:Category:Events|events]]. You can read more about them by typing /help remote in a mIRC window. I suggest you do that right now.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;First we&amp;#039;ll look at how [[mIRC]] scripting actually handles these things. Whenever something happens (a message, a mode change, a kick and so on), your script can react to this. What you need are the so called [[:Category:remote|remote]] [[:Category:Events|events]]. You can read more about them by typing /help remote in a mIRC window. I suggest you do that right now.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Albie</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=2399&amp;oldid=prev</id>
		<title>Albie: replaced L with Q</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=2399&amp;oldid=prev"/>
		<updated>2008-04-06T21:24:08Z</updated>

		<summary type="html">&lt;p&gt;replaced L with Q&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:24, 6 April 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;You might have seen the { } format before. Inside those, we can list as many commands as we want. Let&#039;s say your channel has [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L&lt;/del&gt;]]. One of the commands we need would be: &#039;&#039;msg &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L &lt;/del&gt;op #mychan&#039;&#039;. Instead of #mychan, we can use another identifier. [[$chan]] returns the channel all this happens on, so let&#039;s change the command to &#039;&#039;msg &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L &lt;/del&gt;op $chan&#039;&#039;. This way you can use the same command for more than 1 channel.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;You might have seen the { } format before. Inside those, we can list as many commands as we want. Let&#039;s say your channel has [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Q&lt;/ins&gt;]]. One of the commands we need would be: &#039;&#039;msg &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Q &lt;/ins&gt;op #mychan&#039;&#039;. Instead of #mychan, we can use another identifier. [[$chan]] returns the channel all this happens on, so let&#039;s change the command to &#039;&#039;msg &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Q &lt;/ins&gt;op $chan&#039;&#039;. This way you can use the same command for more than 1 channel.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Now we have another problem. If we&#039;d use on 1:OP:#mychan:{ msg &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L &lt;/del&gt;op $chan }, it would send the message if someone else gets deopped too. That&#039;s why we&#039;re gonna limit it using an [[If-Then-Else|if-statement]]. The if-statement basically checks something. If what it checks is true, it executes some commands. If not, it either does nothing or goes to an else part. For now we won&#039;t use else parts.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Now we have another problem. If we&#039;d use on 1:OP:#mychan:{ msg &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Q &lt;/ins&gt;op $chan }, it would send the message if someone else gets deopped too. That&#039;s why we&#039;re gonna limit it using an [[If-Then-Else|if-statement]]. The if-statement basically checks something. If what it checks is true, it executes some commands. If not, it either does nothing or goes to an else part. For now we won&#039;t use else parts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;What we wanted to check was if it was you who got deopped. As the help on the [[On_op|op]]/[[On_deop|deop]] event says, [[$opnick]] returns the person/nick who get&amp;#039;s opped/deopped in those events. We&amp;#039;ll need to use another identifier: $me. $me simply returns your own nickname. The if-statement we need would become &amp;#039;&amp;#039;if ($opnick == $me) { commands }&amp;#039;&amp;#039;. The == is an operator meaning &amp;#039;equal to&amp;#039; and that&amp;#039;s exactly what we want: &amp;quot;if (the person who gets deopped is equal to myself)&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;What we wanted to check was if it was you who got deopped. As the help on the [[On_op|op]]/[[On_deop|deop]] event says, [[$opnick]] returns the person/nick who get&amp;#039;s opped/deopped in those events. We&amp;#039;ll need to use another identifier: $me. $me simply returns your own nickname. The if-statement we need would become &amp;#039;&amp;#039;if ($opnick == $me) { commands }&amp;#039;&amp;#039;. The == is an operator meaning &amp;#039;equal to&amp;#039; and that&amp;#039;s exactly what we want: &amp;quot;if (the person who gets deopped is equal to myself)&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  on 1:DEOP:#mychannel:{&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  on 1:DEOP:#mychannel:{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if ($opnick == $me) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    if ($opnick == $me) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;      msg &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L &lt;/del&gt;op $chan&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;      msg &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Q &lt;/ins&gt;op $chan&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;This will do what we need. If you get deopped on your channel, it will ask &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;L &lt;/del&gt;to reop you. Have a look at the spaces in front of some of the lines. mIRC automatically adds them when you click OK or the { } button in the remote dialog. The { } button is really useful, because it lets mIRC check if you have placed the { and } brackets correctly. When you&#039;ll write bigger scripts, you&#039;ll start using it a lot.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;This will do what we need. If you get deopped on your channel, it will ask &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Q &lt;/ins&gt;to reop you. Have a look at the spaces in front of some of the lines. mIRC automatically adds them when you click OK or the { } button in the remote dialog. The { } button is really useful, because it lets mIRC check if you have placed the { and } brackets correctly. When you&#039;ll write bigger scripts, you&#039;ll start using it a lot.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We&amp;#039;ll now create another event. We want it to unban you whenever you get banned on your channel. Let&amp;#039;s start with having a look at what actually happens. When someone bans, he sets a banmask, for example *!milk@*.cows.net. This mask contains wildcards, which means it bans dynamically. A wildcard, *, can be replaced by anything: bill!milk@white.cows.net will for example be banned.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We&amp;#039;ll now create another event. We want it to unban you whenever you get banned on your channel. Let&amp;#039;s start with having a look at what actually happens. When someone bans, he sets a banmask, for example *!milk@*.cows.net. This mask contains wildcards, which means it bans dynamically. A wildcard, *, can be replaced by anything: bill!milk@white.cows.net will for example be banned.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Albie</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=2398&amp;oldid=prev</id>
		<title>Albie: changed iswm link</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=2398&amp;oldid=prev"/>
		<updated>2005-11-30T13:12:22Z</updated>

		<summary type="html">&lt;p&gt;changed iswm link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:12, 30 November 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot;&gt;Line 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If we want your full address, we can use [[$address]]($me,5) or [[$ial]]([[$me]]). (Again, click the identifiers mentioned for more detailed information on what they can do.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If we want your full address, we can use [[$address]]($me,5) or [[$ial]]([[$me]]). (Again, click the identifiers mentioned for more detailed information on what they can do.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;We only used the == operator in if-statements until now. Now have a look at the [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Iswm&lt;/del&gt;|iswm]] operator. It literally means is wildcard match. &#039;&#039;if (a*c iswm abc)&#039;&#039; would be true, &#039;&#039;if (ac* iswm abc)&#039;&#039; wouldn&#039;t.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;We only used the == operator in if-statements until now. Now have a look at the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If-Then-Else#The_Operators&lt;/ins&gt;|iswm]] operator. It literally means is wildcard match. &#039;&#039;if (a*c iswm abc)&#039;&#039; would be true, &#039;&#039;if (ac* iswm abc)&#039;&#039; wouldn&#039;t.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now, we can use this to check if the banmask matches your address; to check if &amp;#039;you are banned&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now, we can use this to check if the banmask matches your address; to check if &amp;#039;you are banned&amp;#039;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Albie</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=1133&amp;oldid=prev</id>
		<title>Doomie: its Access Levels not Userlevels</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=1133&amp;oldid=prev"/>
		<updated>2005-11-24T21:03:22Z</updated>

		<summary type="html">&lt;p&gt;its Access Levels not Userlevels&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:03, 24 November 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l73&quot;&gt;Line 73:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 73:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;- [[Kick]] someone who deops your friend&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;- [[Kick]] someone who deops your friend&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;- Only allow people with [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Userlevels&lt;/del&gt;|level]] 20 or higher to [[ban]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;- Only allow people with [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Access Levels&lt;/ins&gt;|level]] 20 or higher to [[ban]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tutorials]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Author|Voronoi}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Author|Voronoi}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Doomie</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=1033&amp;oldid=prev</id>
		<title>Doomie: access levels not userlevels</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=1033&amp;oldid=prev"/>
		<updated>2005-11-23T15:26:52Z</updated>

		<summary type="html">&lt;p&gt;access levels not userlevels&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:26, 23 November 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(on OP and on DEOP events work in a similar way.)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(on OP and on DEOP events work in a similar way.)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;The &#039;&#039;1&#039;&#039; in the example is a [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Userlevels&lt;/del&gt;|userlevel]]. Userlevel 1 means the event always triggers, no matter what level the deop&#039;ing user has, as mIRC per default assigns all users with level 1. The &#039;&#039;#mirc,#irchelp&#039;&#039; are obvioulsy channels the event should work for. Finally, the &#039;&#039;/msg $nick Please don&#039;t...&#039;&#039; part is the command that should be executed. &#039;&#039;$nick&#039;&#039; is an identifier. It returns something. If fishbot would have done the op, then mIRC would read the line as /msg fishbot Please don&#039;t... In words:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;The &#039;&#039;1&#039;&#039; in the example is a [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Access Levels&lt;/ins&gt;|userlevel]]. Userlevel 1 means the event always triggers, no matter what level the deop&#039;ing user has, as mIRC per default assigns all users with level 1. The &#039;&#039;#mirc,#irchelp&#039;&#039; are obvioulsy channels the event should work for. Finally, the &#039;&#039;/msg $nick Please don&#039;t...&#039;&#039; part is the command that should be executed. &#039;&#039;$nick&#039;&#039; is an identifier. It returns something. If fishbot would have done the op, then mIRC would read the line as /msg fishbot Please don&#039;t... In words:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If someone with level 1 or higher (everyone) ops someone in #mirc or #irchelp, message him with Please don&amp;#039;t abuse your Op status.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If someone with level 1 or higher (everyone) ops someone in #mirc or #irchelp, message him with Please don&amp;#039;t abuse your Op status.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Doomie</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=983&amp;oldid=prev</id>
		<title>Zyberdog: added links, changed /help refering to wiki-refering.</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=983&amp;oldid=prev"/>
		<updated>2005-11-22T16:49:58Z</updated>

		<summary type="html">&lt;p&gt;added links, changed /help refering to wiki-refering.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tutorial will help you create a script that gives you some basic protection. Whenever someone deops you in your channel, it will automatically ask [[L]] or [[Q]] to reop you again. Also, when someone bans you, it will attempt to unban you again. Difficulty: easy&lt;br /&gt;
&lt;br /&gt;
First we&amp;#039;ll look at how [[mIRC]] scripting actually handles these things. Whenever something happens (a message, a mode change, a kick and so on), your script can react to this. What you need are the so called [[:Category:remote|remote]] [[:Category:Events|events]]. You can read more about them by typing /help remote in a mIRC window. I suggest you do that right now.&lt;br /&gt;
&lt;br /&gt;
As you can see, the helpfile recommends you read through documents on [[:Category:Commands|Commands]], [[:Category:Aliases|Aliases]], [[:Category:Variables|Variables]] and [[:Category:Identifiers|Identifiers]]. Although it is always a good idea to do so, you might not fully understand what they do and how they work, so understanding all this is not required for this tutorial.&lt;br /&gt;
&lt;br /&gt;
Besides this, you&amp;#039;ll see two other things in the help file. One is a list with events, the other is a note at the end: Note: You should never load or use a script that you don&amp;#039;t understand. Whatever you do, keep this in mind! Lots of users have their Q accounts compromised and other data lost, just because they run a false script.&lt;br /&gt;
&lt;br /&gt;
Back to our problem. We want to get our ops back when someone removes it, so the event we need is the DeOp event. Click on it in the list. The [[On_op|on OP]] and [[On_deop|on DEOP]] events trigger when a user on a channel is opped or deopped. Sound like it&amp;#039;s exactly what we need. Have a look at the format and the example below it:&lt;br /&gt;
&lt;br /&gt;
  Format: on &amp;lt;level&amp;gt;:OP:&amp;lt;#[,#]&amp;gt;:&amp;lt;commands&amp;gt;&lt;br /&gt;
  Example: on 1:OP:#mirc,#irchelp:/[[msg]] [[$nick]] Please don&amp;#039;t abuse your Op status&lt;br /&gt;
&lt;br /&gt;
(on OP and on DEOP events work in a similar way.)&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;1&amp;#039;&amp;#039; in the example is a [[Userlevels|userlevel]]. Userlevel 1 means the event always triggers, no matter what level the deop&amp;#039;ing user has, as mIRC per default assigns all users with level 1. The &amp;#039;&amp;#039;#mirc,#irchelp&amp;#039;&amp;#039; are obvioulsy channels the event should work for. Finally, the &amp;#039;&amp;#039;/msg $nick Please don&amp;#039;t...&amp;#039;&amp;#039; part is the command that should be executed. &amp;#039;&amp;#039;$nick&amp;#039;&amp;#039; is an identifier. It returns something. If fishbot would have done the op, then mIRC would read the line as /msg fishbot Please don&amp;#039;t... In words:&lt;br /&gt;
&lt;br /&gt;
If someone with level 1 or higher (everyone) ops someone in #mirc or #irchelp, message him with Please don&amp;#039;t abuse your Op status.&lt;br /&gt;
&lt;br /&gt;
To use such an event, you&amp;#039;ll need to paste it in [[:Category:Remote|Remote]]. Go to Tools -&amp;gt; Script editor or hit Alt + R. Should the field not be empty, then go to File and select New. If you&amp;#039;d want to use this event, you&amp;#039;d paste it in the large text field and press OK. For now, just press OK without pasting.&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s say your channel is #mychannel. As we want this event to work for all userlevels too, we can make the biggest part of the event: on 1:DEOP:#mychannel:/command. The event can trigger more commands too. We&amp;#039;re gonna change the format for that a bit:&lt;br /&gt;
 on 1:DEOP:#mychannel:{&lt;br /&gt;
   command1&lt;br /&gt;
   command2&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
You might have seen the { } format before. Inside those, we can list as many commands as we want. Let&amp;#039;s say your channel has [[L]]. One of the commands we need would be: &amp;#039;&amp;#039;msg L op #mychan&amp;#039;&amp;#039;. Instead of #mychan, we can use another identifier. [[$chan]] returns the channel all this happens on, so let&amp;#039;s change the command to &amp;#039;&amp;#039;msg L op $chan&amp;#039;&amp;#039;. This way you can use the same command for more than 1 channel.&lt;br /&gt;
&lt;br /&gt;
Now we have another problem. If we&amp;#039;d use on 1:OP:#mychan:{ msg L op $chan }, it would send the message if someone else gets deopped too. That&amp;#039;s why we&amp;#039;re gonna limit it using an [[If-Then-Else|if-statement]]. The if-statement basically checks something. If what it checks is true, it executes some commands. If not, it either does nothing or goes to an else part. For now we won&amp;#039;t use else parts.&lt;br /&gt;
&lt;br /&gt;
What we wanted to check was if it was you who got deopped. As the help on the [[On_op|op]]/[[On_deop|deop]] event says, [[$opnick]] returns the person/nick who get&amp;#039;s opped/deopped in those events. We&amp;#039;ll need to use another identifier: $me. $me simply returns your own nickname. The if-statement we need would become &amp;#039;&amp;#039;if ($opnick == $me) { commands }&amp;#039;&amp;#039;. The == is an operator meaning &amp;#039;equal to&amp;#039; and that&amp;#039;s exactly what we want: &amp;quot;if (the person who gets deopped is equal to myself)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now, let&amp;#039;s just put the if statement we just made inside the event:&lt;br /&gt;
&lt;br /&gt;
 on 1:DEOP:#mychannel:{&lt;br /&gt;
   if ($opnick == $me) {&lt;br /&gt;
     msg L op $chan&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will do what we need. If you get deopped on your channel, it will ask L to reop you. Have a look at the spaces in front of some of the lines. mIRC automatically adds them when you click OK or the { } button in the remote dialog. The { } button is really useful, because it lets mIRC check if you have placed the { and } brackets correctly. When you&amp;#039;ll write bigger scripts, you&amp;#039;ll start using it a lot.&lt;br /&gt;
&lt;br /&gt;
We&amp;#039;ll now create another event. We want it to unban you whenever you get banned on your channel. Let&amp;#039;s start with having a look at what actually happens. When someone bans, he sets a banmask, for example *!milk@*.cows.net. This mask contains wildcards, which means it bans dynamically. A wildcard, *, can be replaced by anything: bill!milk@white.cows.net will for example be banned.&lt;br /&gt;
&lt;br /&gt;
With help from the helpfile, we can easily create the following event:&lt;br /&gt;
&lt;br /&gt;
 [[On_ban|on @1:BAN]]:#mychannel:{&lt;br /&gt;
   if ([[$bnick]] == $me) {&lt;br /&gt;
     mode $chan -b [[$banmask]]&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Click the parts above you don&amp;#039;t understand to see more information on them.&lt;br /&gt;
&lt;br /&gt;
This event will work in some cases, but unfortunately by far not in all. &amp;#039;&amp;#039;$bnick&amp;#039;&amp;#039; only works when a nick is specified inside the banmask, like: &amp;#039;&amp;#039;nick!*@*.*&amp;#039;&amp;#039;. There is another possibility though.&lt;br /&gt;
&lt;br /&gt;
If we want your full address, we can use [[$address]]($me,5) or [[$ial]]([[$me]]). (Again, click the identifiers mentioned for more detailed information on what they can do.)&lt;br /&gt;
&lt;br /&gt;
We only used the == operator in if-statements until now. Now have a look at the [[Iswm|iswm]] operator. It literally means is wildcard match. &amp;#039;&amp;#039;if (a*c iswm abc)&amp;#039;&amp;#039; would be true, &amp;#039;&amp;#039;if (ac* iswm abc)&amp;#039;&amp;#039; wouldn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Now, we can use this to check if the banmask matches your address; to check if &amp;#039;you are banned&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
 on @1:BAN:#mychannel:{&lt;br /&gt;
   if ($banmask iswm $ial($me)) {&lt;br /&gt;
     mode $chan -b $banmask&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
That will do the trick.&lt;br /&gt;
&lt;br /&gt;
When you fully understand how these events work, you should also be able to create events that do these things:&lt;br /&gt;
&lt;br /&gt;
- [[Kick]] someone who deops your friend&lt;br /&gt;
- Only allow people with [[Userlevels|level]] 20 or higher to [[ban]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
{{Author|Voronoi}}&lt;/div&gt;</summary>
		<author><name>Zyberdog</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=225&amp;oldid=prev</id>
		<title>Tovrleaf at 09:11, 25 August 2005</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=How_do_I_reop_or_unban_myself&amp;diff=225&amp;oldid=prev"/>
		<updated>2005-08-25T09:11:04Z</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;This tutorial will help you create a script that gives you some basic protection. Whenever someone deops you in your channel, it will automatically ask [[L]] or [[Q]] to reop you again. Also, when someone bans you, it will attempt to unban you again. Difficulty: easy&lt;br /&gt;
&lt;br /&gt;
First we&amp;#039;ll look at how [[mIRC]] scripting actually handles these things. Whenever something happens (a message, a mode change, a kick and so on), your script can react to this. What you need are the so called [[:Category:remote|remote]] [[:Category:Events|events]]. You can read more about them by typing /help remote in a mIRC window. I suggest you do that right now.&lt;br /&gt;
&lt;br /&gt;
As you can see, the helpfile recommends you read through documents on [[:Category:Commands|Commands]], [[:Category:Aliases|Aliases]], [[:Category:Variables|Variables]] and [[:Category:Identifiers|Identifiers]]. Although it is always a good idea to do so, you might not fully understand what they do and how they work, so understanding all this is not required for this tutorial.&lt;br /&gt;
&lt;br /&gt;
Besides this, you&amp;#039;ll see two other things in the help file. One is a list with events, the other is a note at the end: Note: You should never load or use a script that you don&amp;#039;t understand. Whatever you do, keep this in mind! Lots of users have their Q accounts compromised and other data lost, just because they run a false script.&lt;br /&gt;
&lt;br /&gt;
Back to our problem. We want to get our ops back when someone removes it, so the event we need is the DeOp event. Click on it in the list. The on OP and [[On_deop|on DEOP]] events trigger when a user on a channel is opped or deopped. Sound like it&amp;#039;s exactly what we need. Have a look at the format and the example below it:&lt;br /&gt;
&lt;br /&gt;
  Format: on &amp;lt;level&amp;gt;:OP:&amp;lt;#[,#]&amp;gt;:&amp;lt;commands&amp;gt;&lt;br /&gt;
  Example: on 1:OP:#mirc,#irchelp:/msg $nick Please don&amp;#039;t abuse your Op status&lt;br /&gt;
&lt;br /&gt;
([[On_op|On OP]] and on DEOP work in a similar way. The helpfile has only one entry for both of them.)&lt;br /&gt;
&lt;br /&gt;
The 1 in the example is a [[Userlevels|userlevel]]. Userlevel 1 means the event always triggers, no matter what level the deop&amp;#039;ing user has. the #mirc,#irchelp are obvioulsy channels the event should work for. Finally, the /[[msg]] [[$nick]] Please don&amp;#039;t... part is the command that should be executed. $nick is an identifier. It returns something. If fishbot would have done the op, then mIRC would read the line as /msg fishbot Please don&amp;#039;t... In words:&lt;br /&gt;
&lt;br /&gt;
If someone with level 1 or higher (everyone) ops someone in #mirc or #irchelp, message him with Please don&amp;#039;t abuse your Op status.&lt;br /&gt;
&lt;br /&gt;
To use such an event, you&amp;#039;ll need to paste it in [[:Category:Remote|Remote]]. Go to Tools -&amp;gt; Script editor or hit Alt + R. Should the field not be empty, then go to File and select New. If you&amp;#039;d want to use this event, you&amp;#039;d paste it in the large text field and press OK. For now, just press OK without pasting.&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s say your channel is #mychannel. As we want this event to work for all userlevels too, we can make the biggest part of the event: on 1:DEOP:#mychannel:/command. The event can trigger more commands too. We&amp;#039;re gonna change the format for that a bit:&lt;br /&gt;
 on 1:DEOP:#mychannel:{&lt;br /&gt;
   command1&lt;br /&gt;
   command2&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
You might have seen the { } format before. Inside those, we can list as many commands as we want. Also, we don&amp;#039;t have to use the / character in front of commands. Let&amp;#039;s say your channel has [[L]]. One of the commands we need would be: msg L op #mychan Instead of #mychan, we can use another identifier. [[$chan]] returns the channel all this happens on, so let&amp;#039;s change the command to msg L op $chan. This way you can use the same command for more than 1 channel.&lt;br /&gt;
&lt;br /&gt;
Now we have another problem. If we&amp;#039;d use on 1:OP:#mychan:{ msg L op $chan }, it would send the message if someone else gets deopped too. That&amp;#039;s why we&amp;#039;re gonna limit it using an [[If-Then-Else|if]]-statement. Type /help /if now. if (v1 operator v2) { commands } The if-statement basically checks something. If what it checks is true, it executes some commands. If not, it either does nothing or goes to an else part. For now we won&amp;#039;t use else parts.&lt;br /&gt;
&lt;br /&gt;
What we wanted to check was if it was you who got deopped. As the help on the op/deop event said (/help on deop), [[$opnick]] returns the person who get&amp;#039;s opped/deopped in those events. We&amp;#039;ll need to use another identifier: $me. $me simply returns your own nickname. The if-statement we need would become if ($opnick == $me) { commands }. The == is an operator meaning &amp;#039;equal to&amp;#039; and that&amp;#039;s exactly what we want: &amp;quot;if (the person who gets deopped is equal to myself)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now, let&amp;#039;s just put the if statement we just made inside the event:&lt;br /&gt;
&lt;br /&gt;
 on 1:DEOP:#mychannel:{&lt;br /&gt;
   if ($opnick == $me) {&lt;br /&gt;
     msg L op $chan&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
This will do what we need. If you get deopped on your channel, it will ask L to reop you. Have a look at the spaces in front of each line. mIRC automatically adds them when you click OK or the { } button in the remote dialog. The { } button is really useful, because it lets mIRC check if you have placed the { and } brackets correctly. When you&amp;#039;ll write bigger scripts, you&amp;#039;ll start using it a lot.&lt;br /&gt;
&lt;br /&gt;
We&amp;#039;ll now create another event. We want it to unban you whenever you get banned on your channel. Let&amp;#039;s start with having a look at what actually happens. When someone bans, he sets a banmask, for example *!milk@*.cows.net. This mask contains wildcards, which means it bans dynamically. A wildcard, *, can be replaced by anything: bill!milk@white.cows.net will for example be banned.&lt;br /&gt;
&lt;br /&gt;
With help from the helpfile, we can easily create the following event:&lt;br /&gt;
&lt;br /&gt;
 on @1:BAN:#mychannel:{&lt;br /&gt;
   if ($bnick == $me) {&lt;br /&gt;
     mode $chan -b $banmask&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Use the helpfile if you don&amp;#039;t understand parts of the event, just like we used it before. (/help [[on ban]], /help [[prefixes]], /help /[[mode]])&lt;br /&gt;
&lt;br /&gt;
This event will work in some cases, but unfortunately by far not in all. [[$bnick]] only works when a nick is specified inside the banmask, like: nick!*@*.*. There is another possibility though.&lt;br /&gt;
&lt;br /&gt;
If we want your full address, we can use [[$address]]($me,5) or [[$ial]]([[$me]]). (Again, use /help $address or /help $ial if you want more info.)&lt;br /&gt;
&lt;br /&gt;
We only used the == operator in if-statements until now. Now have a look at the iswm operator. It literally means is wildcard match. if (a*c iswm abc) would be true, if (ac* iswm abc) wouldn&amp;#039;t.&lt;br /&gt;
&lt;br /&gt;
Now, we can use this to check if the banmask matches your address; to check if &amp;#039;you are banned&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
 on @1:BAN:#mychannel:{&lt;br /&gt;
   if ($banmask iswm $ial($me)) {&lt;br /&gt;
     mode $chan -b $banmask&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
That will do the trick.&lt;br /&gt;
&lt;br /&gt;
When you fully understand how these events work, you should also be able to create events that do these things:&lt;br /&gt;
&lt;br /&gt;
- [[Kick]] someone who deops your friend&lt;br /&gt;
- Only allow people with [[Userlevels|level]] 20 or higher to ban&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
</feed>