<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tovrleaf</id>
	<title>Scriptwiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tovrleaf"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/Special:Contributions/Tovrleaf"/>
	<updated>2026-06-04T02:20:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Dec&amp;diff=1025</id>
		<title>Dec</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Dec&amp;diff=1025"/>
		<updated>2005-11-08T20:53:24Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: added category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This decreases the value of %var by value.&lt;br /&gt;
&lt;br /&gt;
 /dec [-cszuN] &amp;lt;%var&amp;gt; [value]&lt;br /&gt;
&lt;br /&gt;
Options explained:&lt;br /&gt;
 uN - decreases %var once and [[unset|unsets]] it N seconds later.&lt;br /&gt;
 z  - decreases %var until it reaches zero and then unsets it.&lt;br /&gt;
 s  - displays action in status window&lt;br /&gt;
 c  - decreases %var once per second.&lt;br /&gt;
&lt;br /&gt;
If no value is given, default value is 1.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example shows how to use dec basically in a while-loop:&lt;br /&gt;
 var %i = 10&lt;br /&gt;
 while (%i) {&lt;br /&gt;
   echo -ag [[$chr]](37) [[DollarPlus|$+]] i = %i&lt;br /&gt;
   dec %i&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*To increase a variable, you can use [[inc]].&lt;br /&gt;
*Read [[While_loops|While loops]] to learn more about them.&lt;br /&gt;
&lt;br /&gt;
[[Category:Variables]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Raw_001&amp;diff=4155</id>
		<title>Raw 001</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Raw_001&amp;diff=4155"/>
		<updated>2005-11-08T09:56:38Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Name:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;RPL_WELCOME&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Format:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;source&amp;gt; 001 &amp;lt;target&amp;gt; :Welcome to the Internet Relay Network [via &amp;lt;provider&amp;gt;], &amp;lt;target&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;Info:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;
This is returned when connecting&amp;lt;br /&amp;gt;&lt;br /&gt;
[via &amp;lt;provider&amp;gt;] only appears when the following F line has been set&lt;br /&gt;
feature: PROVIDER&lt;br /&gt;
* Type: string&lt;br /&gt;
* Default: NULL&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This string as added to the 001 numeric prefixed with &amp;quot;via&amp;quot; before the nick.&lt;br /&gt;
It&#039;s used for providing promotional space to providers as per CFV-202&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Example:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; irc.quakenet.org 001 Dana :Welcome to the Internet Relay Network, Dana&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Raws]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=If-then-else&amp;diff=1041</id>
		<title>If-then-else</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=If-then-else&amp;diff=1041"/>
		<updated>2005-10-28T07:21:37Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#Redirect [[if]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Aliases_as_functions&amp;diff=876</id>
		<title>Aliases as functions</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Aliases_as_functions&amp;diff=876"/>
		<updated>2005-10-28T07:19:55Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: fixed links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Most people think aliases are only used as custom commands, easier to use than typing a list of commands over and over again. When writing larger scripts however, aliases are often used as what are mostly called &#039;routines&#039; or &#039;functions&#039;.&lt;br /&gt;
&lt;br /&gt;
This script will show an example of using aliases in such a way. It calculates how much percent of the persons in all the channels you&#039;re currently in are channel operators. All of this is to be used in remote.&lt;br /&gt;
&lt;br /&gt;
 ;First, we will create an alias that gives us the amount of people&lt;br /&gt;
 ;in all your channels.&lt;br /&gt;
 &lt;br /&gt;
 [[aliases]] totalpeople {&lt;br /&gt;
   ;declare the variables&lt;br /&gt;
   [[var]] %i = 1, %people&lt;br /&gt;
   ;use a while loop to go through every channel.&lt;br /&gt;
   [[while_loops|while]] (%i &amp;lt;= [[$chan]](0)) {&lt;br /&gt;
     ;add the amount of people in the channel the while loop is at to %people&lt;br /&gt;
     inc %people [[$nick]]($chan(%i),0)&lt;br /&gt;
     ;Make sure the while loops will go to the next channel.&lt;br /&gt;
     [[inc]] %i&lt;br /&gt;
   }&lt;br /&gt;
   ;Make the alias return the right value.&lt;br /&gt;
   [[return]] %people&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ;From now on, $totalpeople will return the wanted amount.&lt;br /&gt;
 &lt;br /&gt;
 ;Now we will use a similar alias to count all the operators. The only difference&lt;br /&gt;
 ;is ,o added to the $nick identifier. As /help $nick states, this will make it&lt;br /&gt;
 ;only count channel operators.&lt;br /&gt;
 &lt;br /&gt;
 alias totalops {&lt;br /&gt;
   var %i = 1, %ops&lt;br /&gt;
 &lt;br /&gt;
   while (%i &amp;lt;= $chan(0)) {&lt;br /&gt;
     inc %ops $nick($chan(%i),0,o)&lt;br /&gt;
     inc %i&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   return %ops&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ;This will make $totalops work too.&lt;br /&gt;
 &lt;br /&gt;
 ;As we wanted the result in percents, we should make a nice&lt;br /&gt;
 ;alias for that too. We are going to use &#039;arguments&#039; again.&lt;br /&gt;
 &lt;br /&gt;
 alias percent {&lt;br /&gt;
   ;first we will make sure the two required arguments are used. If they aren&#039;t, the&lt;br /&gt;
   ;alias will return 0 instead of a value that is actually calculated.&lt;br /&gt;
   [[If-then-else|if]] (!$1 || !$2) { return 0 }&lt;br /&gt;
   else {&lt;br /&gt;
     ;now we use $calc with a small bit of maths to return the actual percentage.&lt;br /&gt;
     return [[$calc]]( [[$1-|$1]] / $2 * 100 )&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ;Usage of $percent will be $percent(A,B). This will show how many&lt;br /&gt;
 ;percent A is of B.&lt;br /&gt;
 &lt;br /&gt;
 ;Now let&#039;s create an alias as you&#039;re probably used to do.&lt;br /&gt;
 &lt;br /&gt;
 alias compareops {&lt;br /&gt;
   ;A simple echo will do the trick. I also use $round to make the output look a bit&lt;br /&gt;
   ;nicer with 2 decimals.&lt;br /&gt;
   [[echo]] [[$color]](info) -a * [[$round]]($percent($totalops,$totalpeople),2) [[$+]] [[$chr]](37) of the people in all the channels you&#039;re currently in are channel operators.&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ;You can now type /compareops to get the information you want.&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Archive]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$nick_(nick)&amp;diff=962</id>
		<title>$nick (nick)</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$nick_(nick)&amp;diff=962"/>
		<updated>2005-10-28T07:19:26Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns Nth nickname in the channels nickname listbox on channel #.&lt;br /&gt;
&lt;br /&gt;
 $nick(#, N/nick, aohvr, aohvr)&lt;br /&gt;
&lt;br /&gt;
First parameter marks for &#039;&#039;[[$chan|channel]]&#039;&#039;. Channel can be defined as #channel or as $chan or # what marks for channel the script was triggered/executed. Second parameter &#039;&#039;N&#039;&#039; can be integer for Nth nick at channel, or person&#039;s nickname on channel. Rest of parameters are optional.&lt;br /&gt;
&lt;br /&gt;
Both aohvr parameters are optional. The first specifies which nicks you&#039;d like included, and the second specifies the nicks you&#039;d like excluded, where:&lt;br /&gt;
 a = all nicks, o = ops, h = halfops, v = voiced, r = regular&lt;br /&gt;
&lt;br /&gt;
Parameter $nick takes &#039;&#039;color&#039;&#039;, &#039;&#039;pnick&#039;&#039;, &#039;&#039;idle&#039;&#039; as possible parameters.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;color&#039;&#039;&#039; returns the color of nick in nicklist specified in mIRC&#039;s options.&lt;br /&gt;
&#039;&#039;&#039;pnick&#039;&#039;&#039; returns the nickname with prefixes in a @%+nick format.&lt;br /&gt;
&#039;&#039;&#039;idle&#039;&#039;&#039; returns the time in secods the user has been idle in specified channel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
$nick(#foo, 0) returns the the total number of nicknames on #foo&lt;br /&gt;
$nick(#foo, 1) returns the 1st nickname on #foo&lt;br /&gt;
$nick(#foo, 1, v) returns the 1st voice on #foo&lt;br /&gt;
$nick(#foo, 0, a, ov) returns the total number of nicks on channel #foo excluded ops and voices.&lt;br /&gt;
&lt;br /&gt;
 [[var]] %i = 1&lt;br /&gt;
 [[while_loops|while]] (%i &amp;lt;= $nick(#, 0)) {&lt;br /&gt;
   [[echo]] -a $nick(#help.script, %i).pnick has been idled for [[$duration]]($nick(#help.script, %i).idle)&lt;br /&gt;
   inc %i&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Returns all nicks on channel with their prefixes and idle time.&lt;br /&gt;
Ex:&lt;br /&gt;
 @BlackShroud has been idled for 17hrs 30mins 28secs&lt;br /&gt;
 @Dana has been idled for 14hrs 24mins 9secs&lt;br /&gt;
 @epicaL has been idled for 2days 7hrs 49secs&lt;br /&gt;
 @Microbe has been idled for 6hrs 19mins 45secs&lt;br /&gt;
&lt;br /&gt;
To get longest idle time on channel:&lt;br /&gt;
 alias idletest {&lt;br /&gt;
   var %i = 1, %idle = 0, %nick&lt;br /&gt;
   [[while_loops|while]] (%i &amp;lt;= $nick(#, 0)) { &lt;br /&gt;
     [[if]] ($nick(#, %i).idle &amp;gt; %idle) { &lt;br /&gt;
       %idle = $nick(#, %i).idle&lt;br /&gt;
       %nick = $nick(#, %i)&lt;br /&gt;
     }&lt;br /&gt;
     [[inc]] %i &lt;br /&gt;
   }&lt;br /&gt;
   [[msg]] $chan %nick has the longest idle on $chan that is $duration(%idle)&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Returns ex: epicaL has the longest idle on #help.script that is 2days 7hrs 30mins 21secs&lt;br /&gt;
&lt;br /&gt;
== See Also == &lt;br /&gt;
 * [[$prefix]] identifier for more information.&lt;br /&gt;
 * Usage of property &#039;&#039;pnick&#039;&#039; in tutorial [[How_do_I_customize_mIRC&#039;s_own_output]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Nick and Address Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$bnick&amp;diff=966</id>
		<title>$bnick</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$bnick&amp;diff=966"/>
		<updated>2005-10-04T20:29:18Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;$bnick refers to the banned users [[$nick|nickname]], however this would actually only be filled if the banmask itself includes a nickname. If the [[$banmask|banmask]] does not include a nickname, $bnick is [[$null]].&lt;br /&gt;
 $bnick&lt;br /&gt;
&lt;br /&gt;
Banmask consits of&lt;br /&gt;
 &#039;&#039;nick&#039;&#039;!ident@host&lt;br /&gt;
and means that it&#039;s usually a [[iswm|wildcard]] string which means that it will be matching wildcard strings in your [[remote]] [[users]] section.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[on ban|on ban -event]]&lt;br /&gt;
* [[$address]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Nick and Address Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Category:Time_and_Date_Identifiers&amp;diff=1047</id>
		<title>Category:Time and Date Identifiers</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Category:Time_and_Date_Identifiers&amp;diff=1047"/>
		<updated>2005-09-21T17:53:51Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following characters are recognized in the format parameter string.&lt;br /&gt;
&lt;br /&gt;
 Year            yy     99&lt;br /&gt;
                 yyyy   1999&lt;br /&gt;
 Month           m      1&lt;br /&gt;
                 mm     01&lt;br /&gt;
                 mmm    Jan&lt;br /&gt;
                 mmmm   January&lt;br /&gt;
 Day             d      1&lt;br /&gt;
                 dd     01&lt;br /&gt;
                 ddd    Mon&lt;br /&gt;
                 dddd   Monday&lt;br /&gt;
 Hours           h      5&lt;br /&gt;
                 hh     05&lt;br /&gt;
                 H      13&lt;br /&gt;
                 HH     13&lt;br /&gt;
 Minutes         n      1&lt;br /&gt;
                 nn     01&lt;br /&gt;
 Seconds         s      1&lt;br /&gt;
                 ss     01&lt;br /&gt;
 AM/PM           t      a/p&lt;br /&gt;
                 tt     am/pm&lt;br /&gt;
                 T      A/P&lt;br /&gt;
                 TT     AM/PM&lt;br /&gt;
 Ordinal         oo     st/nd/rd/th&lt;br /&gt;
 Timezone        z      +0&lt;br /&gt;
                 zz     +0000&lt;br /&gt;
                 zzz    +0000 GMT&lt;br /&gt;
&lt;br /&gt;
[[Category:Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$asctime&amp;diff=903</id>
		<title>$asctime</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$asctime&amp;diff=903"/>
		<updated>2005-09-21T17:40:45Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns the time and date in text format associated with the $ctime time value.&lt;br /&gt;
&lt;br /&gt;
 $asctime(N, format)&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;N&#039;&#039; is the timestamp in unixtime, see [[$ctime]] for more information. See [[:Category:Time and Date Identifiers|Time and Date Identifiers]] for full list of  possible formats. Both &#039;&#039;N&#039;&#039; and &#039;&#039;format&#039;&#039; are optional, but only one at the time.&lt;br /&gt;
&lt;br /&gt;
 $asctime([[$ctime]])&lt;br /&gt;
&lt;br /&gt;
returns Wed Sep 21 20:30:26 2005 (for example). You&#039;ll get same result with $asctime(ddd mmm dd H:nn:ss yyyy). Without given &#039;&#039;N&#039;&#039;, $asctime uses $ctime as default.&lt;br /&gt;
&lt;br /&gt;
 $asctime(793947600)             returns the default text format for this time value&lt;br /&gt;
 $asctime(hh:nn:ss)              returns the current time in this format&lt;br /&gt;
 $asctime(793947600, dd/mm/yy)   returns the date for this time value&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[$ctime]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Time and Date Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=News&amp;diff=835</id>
		<title>News</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=News&amp;diff=835"/>
		<updated>2005-09-19T11:32:43Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Use ~ four times to get signature with timestamp, also available at the toolbar, second button from right --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Copy&amp;amp;Paste: {{newsWriter|~ four times}} --&amp;gt;&lt;br /&gt;
== Welcome to mIRC-Wiki ==&lt;br /&gt;
{{newsWriter|[[User:Tovrleaf|Tovrleaf]] 22:53, 15 Sep 2005 (CEST)}}&lt;br /&gt;
&lt;br /&gt;
Hi, and welcome to our new published &#039;&#039;&#039;mIRC-Wiki&#039;&#039;&#039;. mIRC-Wiki (as we call it) is our new lifelong project which is not probably ever be accomplished. It shall be developed and expended along with mIRC and new scripting skills.&lt;br /&gt;
&lt;br /&gt;
Special thanks to all users helped us to get it to shape and to create a more user friendly wiki and articles.&lt;br /&gt;
&lt;br /&gt;
If you think this wiki is missing some essential articles, there&#039;s a page to [[Special:Request|request]] new articles for it. And don&#039;t forget to give us [[:Special:SendComment|feedback]], comments, ideas or new suggestions.&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=News&amp;diff=830</id>
		<title>News</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=News&amp;diff=830"/>
		<updated>2005-09-19T11:31:48Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Use ~ four times to get signature with timestamp, also available at the toolbar, second button from right --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Copy&amp;amp;Paste: {{newsWriter|[[User:Tovrleaf|Tovrleaf]] 13:31, 19 Sep 2005 (CEST)}} --&amp;gt;&lt;br /&gt;
== Welcome to mIRC-Wiki ==&lt;br /&gt;
{{newsWriter|[[User:Tovrleaf|Tovrleaf]] 22:53, 15 Sep 2005 (CEST)}}&lt;br /&gt;
&lt;br /&gt;
Hi, and welcome to our new published &#039;&#039;&#039;mIRC-Wiki&#039;&#039;&#039;. mIRC-Wiki (as we call it) is our new lifelong project which is not probably ever be accomplished. It shall be developed and expended along with mIRC and new scripting skills.&lt;br /&gt;
&lt;br /&gt;
Special thanks to all users helped us to get it to shape and to create a more user friendly wiki and articles.&lt;br /&gt;
&lt;br /&gt;
If you think this wiki is missing some essential articles, there&#039;s a page to [[Special:Request|request]] new articles for it. And don&#039;t forget to give us [[:Special:SendComment|feedback]], comments, ideas or new suggestions.&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Template:NewsWriter&amp;diff=4243</id>
		<title>Template:NewsWriter</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Template:NewsWriter&amp;diff=4243"/>
		<updated>2005-09-19T11:30:42Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;text-align: right; font-weight: 900;&amp;quot;&amp;gt;{{{1}}}&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=News&amp;diff=829</id>
		<title>News</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=News&amp;diff=829"/>
		<updated>2005-09-15T20:55:19Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: typos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Use ~ four times to get signature with timestamp, also available at the toolbar, second button from right --&amp;gt;&lt;br /&gt;
== Welcome to mIRC-Wiki ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: right; font-weight: 900;&amp;quot;&amp;gt;[[User:Tovrleaf|Tovrleaf]] 22:53, 15 Sep 2005 (CEST)&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hi, and welcome to our new published &#039;&#039;&#039;mIRC-Wiki&#039;&#039;&#039;. mIRC-Wiki (as we call it) is our new lifelong project which is not probably ever be accomplished. It shall be developed and expended along with mIRC and new scripting skills.&lt;br /&gt;
&lt;br /&gt;
Special thanks to all users helped us to get it to shape and to create a more user friendly wiki and articles.&lt;br /&gt;
&lt;br /&gt;
If you think this wiki is missing some essential articles, there&#039;s a page to [[Special:Request|request]] new articles for it. And don&#039;t forget to give us [[:Special:SendComment|feedback]], comments, ideas or new suggestions.&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=News&amp;diff=827</id>
		<title>News</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=News&amp;diff=827"/>
		<updated>2005-09-15T20:53:07Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- Use ~ four times to get signature with timestamp, also available at the toolbar, second button from right --&amp;gt;&lt;br /&gt;
== Welcome to mIRC-Wiki ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: right; font-weight: 900;&amp;quot;&amp;gt;[[User:Tovrleaf|Tovrleaf]] 22:53, 15 Sep 2005 (CEST)&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Hi, and welcome to our new published &#039;&#039;&#039;mIRC-Wiki&#039;&#039;&#039;. &#039;&#039;mIRC-Wiki&#039;&#039; (as we call it) is our new lifelong project which is not probably ever be accomplished. It shall be developed and expended along with mIRC and new scripting skills.&lt;br /&gt;
&lt;br /&gt;
Special thanks to all users helped us to get it to shape and to create a more user friendly wiki and articles.&lt;br /&gt;
&lt;br /&gt;
If you think this wiki is missing some essential articles, there&#039;s a page to [[Special:Request|request]] new articles for it. And don&#039;t forget to give us [[:Special:SendComment|feedback]]; comments, ideas or new suggestions.&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Disclaimer&amp;diff=822</id>
		<title>Disclaimer</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Disclaimer&amp;diff=822"/>
		<updated>2005-09-15T16:26:10Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;mIRC-wiki is encyclopedia build and edited on [[http://www.mediawiki.org/ MediaWiki]] under the GNU Free Documentation License (GFDL).&lt;br /&gt;
As you migth think, mIRC-wiki isn&#039;t open-content for anyone, but only for authors consists of [[:Category:Members|members]] of [[About Us|#help.script]] of [[QuakeNet]] and carefully choosen editors.&lt;br /&gt;
&lt;br /&gt;
Articles are based on [[mIRC]]&#039;s [[:Category:mIRC Help|help file]] and is trying to reproduce its structure expanded with examples and tutorials. Only syntax and category structures are copied from original mIRC&#039;s help file and therefore every article is expanded by knowledge of its author(s).&lt;br /&gt;
&lt;br /&gt;
We cannot guarantee mIRC-wiki to be bug-free or its validity entirety, note that authors are only humans. It is constructed with voluntary work and users own will.&lt;br /&gt;
&lt;br /&gt;
=== Copying and Copyrights ===&lt;br /&gt;
Do not copy, plagiarize or use without permission. For personal use only. Note that mIRC is registered trademark.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are in no way responsible for what might happen to you even if you blow up your house using our scripts.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$istokcs&amp;diff=844</id>
		<title>$istokcs</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$istokcs&amp;diff=844"/>
		<updated>2005-09-15T15:48:31Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;$istokcs() is the case-sensitive version of [[$istok]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Token Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$istokcs&amp;diff=820</id>
		<title>$istokcs</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$istokcs&amp;diff=820"/>
		<updated>2005-09-15T15:46:05Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#Redirect [[$istok]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Category:Token_Identifiers&amp;diff=1117</id>
		<title>Category:Token Identifiers</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Category:Token_Identifiers&amp;diff=1117"/>
		<updated>2005-09-15T15:45:28Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[Category:Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$istokcs&amp;diff=819</id>
		<title>$istokcs</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$istokcs&amp;diff=819"/>
		<updated>2005-09-15T15:44:44Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#Redirect [[$istok]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Token Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$istok&amp;diff=905</id>
		<title>$istok</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$istok&amp;diff=905"/>
		<updated>2005-09-15T15:44:19Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns [[$true]] if token exists, otherwise returns [[$false]].&lt;br /&gt;
&lt;br /&gt;
 $istok(text, token, C)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Text&#039;&#039; is the string where we are looking for the match &#039;&#039;token&#039;&#039;. &#039;&#039;C&#039;&#039; stands for ascii value of character that is used as delimiter.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: $istokcs() is the case-sensitive version.&lt;br /&gt;
&lt;br /&gt;
Ascii value for dot is &#039;&#039;46&#039;&#039;. String where from we are looking &#039;&#039;is a.b.c.d&#039;&#039; and we&#039;re looking for token &#039;&#039;b&#039;&#039;.&lt;br /&gt;
 $istok(a.b.c.d, b, 46) returns $true&lt;br /&gt;
&lt;br /&gt;
Note that if we&#039;ll search the same match from the string &#039;&#039;a.b c.d&#039;&#039; with same parameters, $istok(a.b c.d, b, 46) returns $false because now &#039;&#039;b&#039;&#039; belongs to token a.b.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;text&#039;&#039; can be anything, figurative constant, [[$1-]] or any parameters, or [[:Category:variables|variables]].&lt;br /&gt;
&lt;br /&gt;
If you would like to check if you&#039;re name is in text the user typed. As separator we use space. Ascii value for it is 32.&lt;br /&gt;
 on *:[[on text|text]]:#help.script:{&lt;br /&gt;
   if ($istok([[$1-]], [[$me]], 32)) {&lt;br /&gt;
     [[beep]]&lt;br /&gt;
     notice [[$me]] Nick $nick just said your name at [[$chan]]&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[$asc]] to get character&#039;s ascii value.&lt;br /&gt;
* [[If-Then-Else]] for more information about if-statements.&lt;br /&gt;
&lt;br /&gt;
[[Category:Token Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Away_script&amp;diff=3791</id>
		<title>Away script</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Away_script&amp;diff=3791"/>
		<updated>2005-09-15T15:23:38Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: edited links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is an example of a basic away script, including autoaway and option to send a message when you&#039;re away/back.&lt;br /&gt;
&lt;br /&gt;
 ;away alias&lt;br /&gt;
 [[Aliases|alias]] away {&lt;br /&gt;
  ;if $1 does exist, you&#039;ll be marked as away, else you&#039;re back&lt;br /&gt;
  [[If-Then-Else|if]] ([[$1-|$1]]) {&lt;br /&gt;
    ;this is to send an /ame when you set yourself as away&lt;br /&gt;
    [[ame]] is away: [[$1-]]&lt;br /&gt;
    ;the ! is so the normal away alias will be used.&lt;br /&gt;
    !away $1-&lt;br /&gt;
  }&lt;br /&gt;
  [[If-Then-Else|else]] {&lt;br /&gt;
    if ([[$away]]) {&lt;br /&gt;
      ;send an /ame when you&#039;re back :]&lt;br /&gt;
      ame is back from $1-&lt;br /&gt;
      !away&lt;br /&gt;
    }&lt;br /&gt;
    else {&lt;br /&gt;
      [[echo]] -a error, you were not marked as away yet, so you can&#039;t use /away&lt;br /&gt;
      echo -a to be back again :)&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
 ;this alias is to check if you&#039;re active&lt;br /&gt;
 alias awaycheck {&lt;br /&gt;
  ;%t is the var wich is after how many seconds you should be marked as away auto&lt;br /&gt;
  [[var]] %t = 600&lt;br /&gt;
  ;the autoaway will only work if you&#039;re not away yet, and if $idle (the amount of seconds you&#039;ve done nothing in mirc)&lt;br /&gt;
  ;is bigger then %t&lt;br /&gt;
  if (!$away) &amp;amp;&amp;amp; ($idle &amp;gt;= %t) {&lt;br /&gt;
    ;the ame message when you are auto away is considered as being annoying, so we&#039;ll disable that by using !away&lt;br /&gt;
    !away autoaway after %t seconds&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
 ;start a timer for the awaycheck&lt;br /&gt;
 on *:[[on connect|connect]]:{&lt;br /&gt;
  ;the . is so you won&#039;t see &amp;quot;* Timer 1 activated&amp;quot; when you start it&lt;br /&gt;
  ;the 0 is to let it run forever, or till you turn mirc off or your computer crashes :)&lt;br /&gt;
  ;30 means every 30 seconds&lt;br /&gt;
  .[[timer]] 0 30 awaycheck&lt;br /&gt;
 }&lt;br /&gt;
 ;add here all channels you don&#039;t want you&#039;re /ame messages to appear in&lt;br /&gt;
 alias nochannels {&lt;br /&gt;
  ;return is to make it an identifyer, so you can use $nochannels wich will give everything you put behind return&lt;br /&gt;
  [[return]] #help.script,#feds,#help,#other_channels&lt;br /&gt;
 }&lt;br /&gt;
 ;ame alias, wich doesn&#039;t send the message to all channels&lt;br /&gt;
 alias ame {&lt;br /&gt;
  ;make %a 1, and clear %t&lt;br /&gt;
  var %a = 1,%t&lt;br /&gt;
  ;the while runs as long as %a is lower or equal to $chan(0)&lt;br /&gt;
  [[While_loops|while]] (%a &amp;lt;= $chan(0)) {&lt;br /&gt;
    ;$istok is an identifyer wich will return $true if the $chan(%a) is in $nochannels&lt;br /&gt;
    if (![[$istok]]($nochannels,[[$chan]](%a),44)) {&lt;br /&gt;
      ;if $chan(%a) is not it in, add the channel to %t&lt;br /&gt;
      var %t = %t $+ $chr(44) $+ $chan(%a)&lt;br /&gt;
      ;echo in the channel the action&lt;br /&gt;
      echo [[$color]](action text) -t $chan(%a) * [[$nick]]($chan(%a),[[$me]]).pnick $1-&lt;br /&gt;
    }&lt;br /&gt;
    inc %a&lt;br /&gt;
  }&lt;br /&gt;
  ;send the message to the server&lt;br /&gt;
  .[[raw]] PRIVMSG $right(%t,-1) $+(:,$chr(1),ACTION,$chr(32),$1-,$chr(1))&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Archive]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Events&amp;diff=2653</id>
		<title>Events</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Events&amp;diff=2653"/>
		<updated>2005-09-15T15:20:30Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#Redirect [[:Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Echo&amp;diff=821</id>
		<title>Echo</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Echo&amp;diff=821"/>
		<updated>2005-09-15T15:09:29Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: added see also&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prints text in the specified window using the specified color.&lt;br /&gt;
 /echo [color] [-cdeghiNtsaqlbfnmr] [color name] [#channel|[=]nick] &amp;lt;text&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Switch&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Meaning&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;s&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;If a channel/nickname isn&#039;t specified, it echoes to the status window.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;d&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;If a channel/nickname isn&#039;t specified, it echoes to the single message window.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;a&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;If a channel/nickname isn&#039;t specified, it echoes to the active window.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;e&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Encloses the line in the line spearators.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;iN&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Indents the wrapped line by N characters.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;h&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Forces lines to hard-wrap so resizing the window doesn&#039;t change the line.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;t&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Prefixes the line with a timestamp if global time stamping is on or timestamping is on for that window.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;q&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Makes it not display the text if called from an alias using the . prefix.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;l&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Makes it apply the highlight settings to the line that&#039;s displayed.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;bf&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Make it apply the beep/flash settings in the window it is echoing to.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;n&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Prevents the echo from hiliting the window switchbar icon.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;m&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Indicates that the line should be treated as a user message, not an event.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;g&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Prevents the line from being logged to the log file.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;r&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Applies the strip settings in the messages dialog.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;c&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Uses the specified color name from the colors dialog.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that this text is only displayed in your own window and isn&#039;t sent to the server.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 /echo -a moo&lt;br /&gt;
This will print moo to the active window.&lt;br /&gt;
 /echo -sb moo&lt;br /&gt;
This will print moo to the status window and applies the beep setting in the window.&lt;br /&gt;
 /echo 0 -g #help.script moo&lt;br /&gt;
This will print moo to the #help.script channel window in white with preventing it from logging to the log file.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* Take a look on [[How do I customize mIRC&#039;s own output|How do I customize mIRC&#039;s own output]] by using echo at category [[:Category:Tutorials|Tutorials]].&lt;br /&gt;
* Take a look on [[Custom Windows]] to see how to print text to it.&lt;br /&gt;
[[Category:Commands]]&lt;br /&gt;
&lt;br /&gt;
{{Stub}}&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Return&amp;diff=815</id>
		<title>Return</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Return&amp;diff=815"/>
		<updated>2005-09-14T04:19:54Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: Custom Identifiers -&amp;gt; Custom Identifiers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Halts a currently executing script and allows the calling routine to continue processing.&lt;br /&gt;
 /return [value]&lt;br /&gt;
You can also optionally specify a return value which will be stored in the [[$result]] [[Identifiers|identifier]]. The $result can then be used in the calling routine.&lt;br /&gt;
&lt;br /&gt;
Value is optional. If identifiers doesn&#039;t return any existing value, the return [[$null]] by default.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 [[var]] %c = 1&lt;br /&gt;
 [[While_loops|while]] (%c &amp;lt;= 10) {&lt;br /&gt;
   [[echo]] -a %c&lt;br /&gt;
   [[If-Then-Else|if]] (%c == 5) { return }&lt;br /&gt;
   [[inc]] %c&lt;br /&gt;
 }&lt;br /&gt;
[[Echo|Echos]] values from 1 to 5.&lt;br /&gt;
 alias foo { return Today, it&#039;s the [[$asctime]](dd.mm.yyyy) }&lt;br /&gt;
 /echo -a $foo&lt;br /&gt;
This will echo &#039;Today, it&#039;s the &amp;lt;current date&amp;gt;&#039;, as $foo returns it.&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Identifiers|Identifiers]]&lt;br /&gt;
* [[Custom Identifiers]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Aliases]] [[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=812</id>
		<title>If-Then-Else</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=812"/>
		<updated>2005-09-12T16:49:13Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==If-then-else statements==&lt;br /&gt;
&lt;br /&gt;
The If-then-else statement allows you to compare values and execute different parts of a script based on that comparison.&lt;br /&gt;
&lt;br /&gt;
 if (v1 operator v2) { commands }&lt;br /&gt;
 elseif (v1 operator v2) { commands }&lt;br /&gt;
 else { commands }&lt;br /&gt;
&lt;br /&gt;
If the first  statement is true, commands inside of first brackets are executed. If the first if-statement returns false, script starts looking for elseif-statement. Elseif-statement can be only accessed if none of the same groups if&#039;s have not returned true before. And at last, if none of the statements were triggered, commands in else-statement are executed.&lt;br /&gt;
&lt;br /&gt;
One if structure can consist of one main if-statement, after it there can be 0 .. N elseif-statements. There can be only one else, which can be understood as the default statement, if none one before were triggered. There doesn&#039;t need to be else-statement though.&lt;br /&gt;
&lt;br /&gt;
Every if statement is handled separatly and none of others effects in another.&lt;br /&gt;
&lt;br /&gt;
 if (A) { ... }&lt;br /&gt;
 elseif (B) {&lt;br /&gt;
   if (C) { ... }&lt;br /&gt;
   elseif (D) { ... }&lt;br /&gt;
   elseif (E) { ... }&lt;br /&gt;
   else { F }&lt;br /&gt;
 }&lt;br /&gt;
 elseif (G) { ... }&lt;br /&gt;
 else { H }&lt;br /&gt;
&lt;br /&gt;
If structure would be hierarchical represented it would look something like this&lt;br /&gt;
&lt;br /&gt;
 A               If A is true, execute its commands and return&lt;br /&gt;
 B               If B is true, &lt;br /&gt;
  \&lt;br /&gt;
   C                 check if C, D or E returns true&lt;br /&gt;
   D&lt;br /&gt;
   E&lt;br /&gt;
   F             If none of these got triggered, return F&lt;br /&gt;
 G               G is checked only if A or B were not triggered&lt;br /&gt;
 H               If none of previous wasn&#039;t matches, H is returned&lt;br /&gt;
&lt;br /&gt;
== The Operators ==&lt;br /&gt;
&lt;br /&gt;
 ==        equal to&lt;br /&gt;
 ===       equal to (case-sensitive)&lt;br /&gt;
 !=        not equal to&lt;br /&gt;
 &amp;lt;         less than&lt;br /&gt;
 &amp;gt;         larger than&lt;br /&gt;
 &amp;gt;=        larger than or equal to&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;=        smaller than or equal to&lt;br /&gt;
 //        v2 is a multiple of v1&lt;br /&gt;
 \\        v2 is not a multiple of v1&lt;br /&gt;
 &amp;amp;         bitwise comparison&lt;br /&gt;
 &lt;br /&gt;
 isin      string v1 is in string v2&lt;br /&gt;
 isincs    string v1 is in string v2 (case sensitive)&lt;br /&gt;
 iswm      wildcard string v1 matches string v2&lt;br /&gt;
 iswmcs    wildcard string v1 matches string v2 (case sensitive)&lt;br /&gt;
 isnum     number v1 is a number in the range v2 which is in the form n1-n2 (v2 optional)&lt;br /&gt;
 isletter  letter v1 is a letter in the list of letters in v2 (v2 optional)&lt;br /&gt;
 &lt;br /&gt;
 isalnum   text contains only letters and numbers&lt;br /&gt;
 isalpha   text contains only letters&lt;br /&gt;
 islower   text contains only lower case letters&lt;br /&gt;
 isupper   text contains only upper case letters&lt;br /&gt;
 &lt;br /&gt;
 ison      nickname v1 is on channel v2&lt;br /&gt;
 isop      nickname v1 is an op on channel v2&lt;br /&gt;
 ishop     nickname v1 is a halfop on channel v2&lt;br /&gt;
 isvoice   nickname v1 has a voice on channel v2&lt;br /&gt;
 isreg     nickname v1 is a normal nick on channel v2&lt;br /&gt;
 ischan    if v1 is a channel which you are on.&lt;br /&gt;
 isban     if v1 is a banned address in internal ban list&lt;br /&gt;
 &lt;br /&gt;
 isaop     if v1 is a user in your auto-op list for channel v2 (v2 optional)&lt;br /&gt;
 isavoice  if v1 is a user in your auto-voice list for channel v2 (v2 optional)&lt;br /&gt;
 isignore  if v1 is a user in your ignore list with the ignore switch v2 (v2 optional)&lt;br /&gt;
 isprotect if v1 is a user in your protect list for channel v2 (v2 optional)&lt;br /&gt;
 isnotify  if v1 is a user in your notify list.&lt;br /&gt;
&lt;br /&gt;
To negate an operator you can prefix it with an ! exclamation mark.&lt;br /&gt;
&lt;br /&gt;
=== Few examples ===&lt;br /&gt;
&lt;br /&gt;
 if (cat isin [[$1-]])&lt;br /&gt;
matches for &amp;quot;a cat&amp;quot;, catalog and any string where &amp;quot;cat&amp;quot; &#039;&#039;&#039;is in&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
iswm stands for is a wildcard match. Operators:&lt;br /&gt;
 *  0..N character&lt;br /&gt;
 ?  1 character&lt;br /&gt;
&lt;br /&gt;
 if (*bat* iswm $1-)&lt;br /&gt;
allows charter before string and after it, but there&#039;s no need for it. See [[Wildcard]] for more help.&lt;br /&gt;
&lt;br /&gt;
 if (ca?* iswm $1-)&lt;br /&gt;
requires one character after &amp;quot;ca&amp;quot; and allows 0..N character after it. So it would match for cat, cab, cabin etc.&lt;br /&gt;
&lt;br /&gt;
Not all comparations need two parameters.&lt;br /&gt;
 if ($1- isupper)&lt;br /&gt;
returns true, if $1- oly contain uppercase letters. So ABCD returns true, but even one lowercase letter makes it return false.&lt;br /&gt;
&lt;br /&gt;
== Combining comparisons ==&lt;br /&gt;
&lt;br /&gt;
You can combine comparisons by using the &amp;amp;&amp;amp; for AND and || for OR characters.&lt;br /&gt;
&lt;br /&gt;
 [[var]] %c = 5&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c &amp;gt; 0)      ; returns true because %c is both, smaller than 6 and greater than 0&lt;br /&gt;
 if (%c &amp;lt; 6) || (%c isalpha)  ; returns true because %c is lower than 6.&lt;br /&gt;
                              ; note that %c is not alphapetical and returns false, but || matches for 1 .. N true values.&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c isalpha)  ; returns false&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c !isalpha) ; ! negates the operator, this this returns true&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039; this article covers only if-then-else &#039;&#039;&#039;string&#039;&#039;&#039; operators, so you can&#039;t use&lt;br /&gt;
 if (foo isin test.txt)&lt;br /&gt;
to check content of text-files. You can use [[$read]] instead of that to read content of textfile and which returns value can be used instead.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Wildcard]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=807</id>
		<title>If-Then-Else</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=807"/>
		<updated>2005-09-12T16:41:49Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==If-then-else statements==&lt;br /&gt;
&lt;br /&gt;
The If-then-else statement allows you to compare values and execute different parts of a script based on that comparison.&lt;br /&gt;
&lt;br /&gt;
 if (v1 operator v2) { commands }&lt;br /&gt;
 elseif (v1 operator v2) { commands }&lt;br /&gt;
 else { commands }&lt;br /&gt;
&lt;br /&gt;
If the first  statement is true, commands inside of first brackets are executed. If the first if-statement returns false, script starts looking for elseif-statement. Elseif-statement can be only accessed if none of the same groups if&#039;s have not returned true before. And at last, if none of the statements were triggered, commands in else-statement are executed.&lt;br /&gt;
&lt;br /&gt;
One if structure can consist of one main if-statement, after it there can be 0 .. N elseif-statements. There can be only one else, which can be understood as the default statement, if none one before were triggered. There doesn&#039;t need to be else-statement though.&lt;br /&gt;
&lt;br /&gt;
Every if statement is handled separatly and none of others effects in another.&lt;br /&gt;
&lt;br /&gt;
 if (A) { ... }&lt;br /&gt;
 elseif (B) {&lt;br /&gt;
   if (C) { ... }&lt;br /&gt;
   elseif (D) { ... }&lt;br /&gt;
   elseif (E) { ... }&lt;br /&gt;
   else { F }&lt;br /&gt;
 }&lt;br /&gt;
 elseif (G) { ... }&lt;br /&gt;
 else { H }&lt;br /&gt;
&lt;br /&gt;
If structure would be hierarchical represented it would look something like this&lt;br /&gt;
&lt;br /&gt;
 A               If A is true, execute its commands and return&lt;br /&gt;
 B               If B is true, &lt;br /&gt;
  \&lt;br /&gt;
   C                 check if C, D or E returns true&lt;br /&gt;
   D&lt;br /&gt;
   E&lt;br /&gt;
   F             If none of these got triggered, return F&lt;br /&gt;
 G               G is checked only if A or B were not triggered&lt;br /&gt;
 H               If none of previous wasn&#039;t matches, H is returned&lt;br /&gt;
&lt;br /&gt;
== The Operators ==&lt;br /&gt;
&lt;br /&gt;
 ==        equal to&lt;br /&gt;
 ===       equal to (case-sensitive)&lt;br /&gt;
 !=        not equal to&lt;br /&gt;
 &amp;lt;         less than&lt;br /&gt;
 &amp;gt;         larger than&lt;br /&gt;
 &amp;gt;=        larger than or equal to&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;=        smaller than or equal to&lt;br /&gt;
 //        v2 is a multiple of v1&lt;br /&gt;
 \\        v2 is not a multiple of v1&lt;br /&gt;
 &amp;amp;         bitwise comparison&lt;br /&gt;
 &lt;br /&gt;
 isin      string v1 is in string v2&lt;br /&gt;
 isincs    string v1 is in string v2 (case sensitive)&lt;br /&gt;
 iswm      wildcard string v1 matches string v2&lt;br /&gt;
 iswmcs    wildcard string v1 matches string v2 (case sensitive)&lt;br /&gt;
 isnum     number v1 is a number in the range v2 which is in the form n1-n2 (v2 optional)&lt;br /&gt;
 isletter  letter v1 is a letter in the list of letters in v2 (v2 optional)&lt;br /&gt;
 &lt;br /&gt;
 isalnum   text contains only letters and numbers&lt;br /&gt;
 isalpha   text contains only letters&lt;br /&gt;
 islower   text contains only lower case letters&lt;br /&gt;
 isupper   text contains only upper case letters&lt;br /&gt;
 &lt;br /&gt;
 ison      nickname v1 is on channel v2&lt;br /&gt;
 isop      nickname v1 is an op on channel v2&lt;br /&gt;
 ishop     nickname v1 is a halfop on channel v2&lt;br /&gt;
 isvoice   nickname v1 has a voice on channel v2&lt;br /&gt;
 isreg     nickname v1 is a normal nick on channel v2&lt;br /&gt;
 ischan    if v1 is a channel which you are on.&lt;br /&gt;
 isban     if v1 is a banned address in internal ban list&lt;br /&gt;
 &lt;br /&gt;
 isaop     if v1 is a user in your auto-op list for channel v2 (v2 optional)&lt;br /&gt;
 isavoice  if v1 is a user in your auto-voice list for channel v2 (v2 optional)&lt;br /&gt;
 isignore  if v1 is a user in your ignore list with the ignore switch v2 (v2 optional)&lt;br /&gt;
 isprotect if v1 is a user in your protect list for channel v2 (v2 optional)&lt;br /&gt;
 isnotify  if v1 is a user in your notify list.&lt;br /&gt;
&lt;br /&gt;
To negate an operator you can prefix it with an ! exclamation mark.&lt;br /&gt;
&lt;br /&gt;
=== Few examples ===&lt;br /&gt;
&lt;br /&gt;
 if (cat isin [[$1-]])&lt;br /&gt;
matches for &amp;quot;a cat&amp;quot;, catalog and any string where &amp;quot;cat&amp;quot; &#039;&#039;&#039;is in&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
iswm stands for is a wildcard match. Operators:&lt;br /&gt;
 *  0..N character&lt;br /&gt;
 ?  1 character&lt;br /&gt;
&lt;br /&gt;
 if (*bat* iswm $1-)&lt;br /&gt;
allows charter before string and after it, but there&#039;s no need for it. See [[Wildcard]] for more help.&lt;br /&gt;
&lt;br /&gt;
 if (ca?* iswm $1-)&lt;br /&gt;
requires one character after &amp;quot;ca&amp;quot; and allows 0..N character after it. So it would match for cat, cab, cabin etc.&lt;br /&gt;
&lt;br /&gt;
Not all comparations need two parameters.&lt;br /&gt;
 if ($1- isupper)&lt;br /&gt;
returns true, if $1- oly contain uppercase letters. So ABCD returns true, but even one lowercase letter makes it return false.&lt;br /&gt;
&lt;br /&gt;
== Combining comparisons ==&lt;br /&gt;
&lt;br /&gt;
You can combine comparisons by using the &amp;amp;&amp;amp; for AND and || for OR characters.&lt;br /&gt;
&lt;br /&gt;
 [[var]] %c = 5&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c &amp;gt; 0)      ; returns true because %c is both, smaller than 6 and greater than 0&lt;br /&gt;
 if (%c &amp;lt; 6) || (%c isalpha)  ; returns true because %c is lower than 6.&lt;br /&gt;
                              ; note that %c is not alphapetical and returns false, but || matches for 1 .. N true values.&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c isalpha)  ; returns false&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c !isalpha) ; ! negates the operator, this this returns true&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Wildcard]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=806</id>
		<title>If-Then-Else</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=806"/>
		<updated>2005-09-12T16:41:17Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==If-then-else statements==&lt;br /&gt;
&lt;br /&gt;
The If-then-else statement allows you to compare values and execute different parts of a script based on that comparison.&lt;br /&gt;
&lt;br /&gt;
 if (v1 operator v2) { commands }&lt;br /&gt;
 elseif (v1 operator v2) { commands }&lt;br /&gt;
 else { commands }&lt;br /&gt;
&lt;br /&gt;
If the first  statement is true, commands inside of first brackets are executed. If the first if-statement returns false, script starts looking for elseif-statement. Elseif-statement can be only accessed if none of the same groups if&#039;s have not returned true before. And at last, if none of the statements were triggered, commands in else-statement are executed.&lt;br /&gt;
&lt;br /&gt;
One if structure can consist of one main if-statement, after it there can be 0 .. N elseif-statements. There can be only one else, which can be understood as the default statement, if none one before were triggered. There doesn&#039;t need to be else-statement though.&lt;br /&gt;
&lt;br /&gt;
Every if statement is handled separatly and none of others effects in another.&lt;br /&gt;
&lt;br /&gt;
 if (A) { ... }&lt;br /&gt;
 elseif (B) {&lt;br /&gt;
   if (C) { ... }&lt;br /&gt;
   elseif (D) { ... }&lt;br /&gt;
   elseif (E) { ... }&lt;br /&gt;
   else { F }&lt;br /&gt;
 }&lt;br /&gt;
 elseif (G) { ... }&lt;br /&gt;
 else { H }&lt;br /&gt;
&lt;br /&gt;
If structure would be hierarchical represented it would look something like this&lt;br /&gt;
&lt;br /&gt;
 A               If A is true, execute its commands and return&lt;br /&gt;
 B               If B is true, &lt;br /&gt;
  \&lt;br /&gt;
   C                 check if C, D or E returns true&lt;br /&gt;
   D&lt;br /&gt;
   E&lt;br /&gt;
   F             If none of these got triggered, return F&lt;br /&gt;
 G               G is checked only if A or B were not triggered&lt;br /&gt;
 H               If none of previous wasn&#039;t matches, H is returned&lt;br /&gt;
&lt;br /&gt;
== The Operators ==&lt;br /&gt;
&lt;br /&gt;
 ==        equal to&lt;br /&gt;
 ===       equal to (case-sensitive)&lt;br /&gt;
 !=        not equal to&lt;br /&gt;
 &amp;lt;         less than&lt;br /&gt;
 &amp;gt;         larger than&lt;br /&gt;
 &amp;gt;=        larger than or equal to&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;=        smaller than or equal to&lt;br /&gt;
 //        v2 is a multiple of v1&lt;br /&gt;
 \\        v2 is not a multiple of v1&lt;br /&gt;
 &amp;amp;         bitwise comparison&lt;br /&gt;
 &lt;br /&gt;
 isin      string v1 is in string v2&lt;br /&gt;
 isincs    string v1 is in string v2 (case sensitive)&lt;br /&gt;
 iswm      wildcard string v1 matches string v2&lt;br /&gt;
 iswmcs    wildcard string v1 matches string v2 (case sensitive)&lt;br /&gt;
 isnum     number v1 is a number in the range v2 which is in the form n1-n2 (v2 optional)&lt;br /&gt;
 isletter  letter v1 is a letter in the list of letters in v2 (v2 optional)&lt;br /&gt;
 &lt;br /&gt;
 isalnum   text contains only letters and numbers&lt;br /&gt;
 isalpha   text contains only letters&lt;br /&gt;
 islower   text contains only lower case letters&lt;br /&gt;
 isupper   text contains only upper case letters&lt;br /&gt;
 &lt;br /&gt;
 ison      nickname v1 is on channel v2&lt;br /&gt;
 isop      nickname v1 is an op on channel v2&lt;br /&gt;
 ishop     nickname v1 is a halfop on channel v2&lt;br /&gt;
 isvoice   nickname v1 has a voice on channel v2&lt;br /&gt;
 isreg     nickname v1 is a normal nick on channel v2&lt;br /&gt;
 ischan    if v1 is a channel which you are on.&lt;br /&gt;
 isban     if v1 is a banned address in internal ban list&lt;br /&gt;
 &lt;br /&gt;
 isaop     if v1 is a user in your auto-op list for channel v2 (v2 optional)&lt;br /&gt;
 isavoice  if v1 is a user in your auto-voice list for channel v2 (v2 optional)&lt;br /&gt;
 isignore  if v1 is a user in your ignore list with the ignore switch v2 (v2 optional)&lt;br /&gt;
 isprotect if v1 is a user in your protect list for channel v2 (v2 optional)&lt;br /&gt;
 isnotify  if v1 is a user in your notify list.&lt;br /&gt;
&lt;br /&gt;
To negate an operator you can prefix it with an ! exclamation mark.&lt;br /&gt;
&lt;br /&gt;
=== Few examples ===&lt;br /&gt;
&lt;br /&gt;
 if (cat isin [[$1-]])&lt;br /&gt;
matches for &amp;quot;a cat&amp;quot;, catalog and any string where &amp;quot;cat&amp;quot; &#039;&#039;&#039;is in&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
iswm stands for is a wildcard match. Operators:&lt;br /&gt;
 *  0..N character&lt;br /&gt;
 ?  1 character&lt;br /&gt;
&lt;br /&gt;
 if (*bat* iswm $1-)&lt;br /&gt;
allows charter before string and after it, but there&#039;s no need for it. See [[Wildcard]] for more help.&lt;br /&gt;
&lt;br /&gt;
 if (ca?* iswm $1-)&lt;br /&gt;
requires one character after &amp;quot;ca&amp;quot; and allows 0..N character after it. So it would match for cat, cab, cabin etc.&lt;br /&gt;
&lt;br /&gt;
Not all comparations need two parameters.&lt;br /&gt;
 if ($1- isupper)&lt;br /&gt;
returns true, if $1- oly contain uppercase letters. So ABCD returns true, but even one lowercase letter makes it return false.&lt;br /&gt;
&lt;br /&gt;
== Combining comparisons ==&lt;br /&gt;
&lt;br /&gt;
You can combine comparisons by using the &amp;amp;&amp;amp; for AND and || for OR characters.&lt;br /&gt;
&lt;br /&gt;
 var %c = 5&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c &amp;gt; 0)      ; returns true because %c is both, smaller than 6 and greater than 0&lt;br /&gt;
 if (%c &amp;lt; 6) || (%c isalpha)  ; returns true because %c is lower than 6.&lt;br /&gt;
                              ; note that %c is not alphapetical and returns false, but || matches for 1 .. N true values.&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c isalpha)  ; returns false&lt;br /&gt;
 if (%c &amp;lt; 6) &amp;amp;&amp;amp; (%c !isalpha) ; ! negates the operator, this this returns true&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Wildcard]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=If&amp;diff=4240</id>
		<title>If</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=If&amp;diff=4240"/>
		<updated>2005-09-12T16:18:21Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#Redirect [[If-Then-Else]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=780</id>
		<title>If-Then-Else</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=If-Then-Else&amp;diff=780"/>
		<updated>2005-09-09T15:33:37Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==If-then-else statements==&lt;br /&gt;
&lt;br /&gt;
The If-then-else statement allows you to compare values and execute different parts of a script based on that comparison.&lt;br /&gt;
&lt;br /&gt;
 if (v1 operator v2) { commands }&lt;br /&gt;
 elseif (v1 operator v2) { commands }&lt;br /&gt;
 else { commands }&lt;br /&gt;
&lt;br /&gt;
If the first  statement is true, commands inside of first brackets are executed. If the first if-statement returns false, script starts looking for elseif-statement. Elseif-statement can be only accessed if none of the same groups if&#039;s have not returned true before. And at last, if none of the statements were triggered, commands in else-statement are executed.&lt;br /&gt;
&lt;br /&gt;
One if structure can consist of one main if-statement, after it there can be 0 .. N elseif-statements. There can be only one else, which can be understood as the default statement, if none one before were triggered. There doesn&#039;t need to be else-statement though.&lt;br /&gt;
&lt;br /&gt;
Every if statement is handled separatly and none of others effects in another.&lt;br /&gt;
&lt;br /&gt;
 if (A) { ... }&lt;br /&gt;
 elseif (B) {&lt;br /&gt;
   if (C) { ... }&lt;br /&gt;
   elseif (D) { ... }&lt;br /&gt;
   elseif (E) { ... }&lt;br /&gt;
   else { F }&lt;br /&gt;
 }&lt;br /&gt;
 elseif (G) { ... }&lt;br /&gt;
 else { H }&lt;br /&gt;
&lt;br /&gt;
If structure would be hierarchical represented it would look something like this&lt;br /&gt;
&lt;br /&gt;
 A               If A is true, execute its commands and return&lt;br /&gt;
 B               If B is true, &lt;br /&gt;
  \&lt;br /&gt;
   C                 check if C, D or E returns true&lt;br /&gt;
   D&lt;br /&gt;
   E&lt;br /&gt;
   F             If none of these got triggered, return F&lt;br /&gt;
 G               G is checked only if A or B were not triggered&lt;br /&gt;
 H               If none of previous wasn&#039;t matches, H is returned&lt;br /&gt;
&lt;br /&gt;
== The Operators ==&lt;br /&gt;
&lt;br /&gt;
 ==        equal to&lt;br /&gt;
 ===       equal to (case-sensitive)&lt;br /&gt;
 !=        not equal to&lt;br /&gt;
 &amp;lt;         less than&lt;br /&gt;
 &amp;gt;         larger than&lt;br /&gt;
 &amp;gt;=        larger than or equal to&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;=        smaller than or equal to&lt;br /&gt;
 //        v2 is a multiple of v1&lt;br /&gt;
 \\        v2 is not a multiple of v1&lt;br /&gt;
 &amp;amp;         bitwise comparison&lt;br /&gt;
 &lt;br /&gt;
 isin      string v1 is in string v2&lt;br /&gt;
 isincs    string v1 is in string v2 (case sensitive)&lt;br /&gt;
 iswm      wildcard string v1 matches string v2&lt;br /&gt;
 iswmcs    wildcard string v1 matches string v2 (case sensitive)&lt;br /&gt;
 isnum     number v1 is a number in the range v2 which is in the form n1-n2 (v2 optional)&lt;br /&gt;
 isletter  letter v1 is a letter in the list of letters in v2 (v2 optional)&lt;br /&gt;
 &lt;br /&gt;
 isalnum   text contains only letters and numbers&lt;br /&gt;
 isalpha   text contains only letters&lt;br /&gt;
 islower   text contains only lower case letters&lt;br /&gt;
 isupper   text contains only upper case letters&lt;br /&gt;
 &lt;br /&gt;
 ison      nickname v1 is on channel v2&lt;br /&gt;
 isop      nickname v1 is an op on channel v2&lt;br /&gt;
 ishop     nickname v1 is a halfop on channel v2&lt;br /&gt;
 isvoice   nickname v1 has a voice on channel v2&lt;br /&gt;
 isreg     nickname v1 is a normal nick on channel v2&lt;br /&gt;
 ischan    if v1 is a channel which you are on.&lt;br /&gt;
 isban     if v1 is a banned address in internal ban list&lt;br /&gt;
 &lt;br /&gt;
 isaop     if v1 is a user in your auto-op list for channel v2 (v2 optional)&lt;br /&gt;
 isavoice  if v1 is a user in your auto-voice list for channel v2 (v2 optional)&lt;br /&gt;
 isignore  if v1 is a user in your ignore list with the ignore switch v2 (v2 optional)&lt;br /&gt;
 isprotect if v1 is a user in your protect list for channel v2 (v2 optional)&lt;br /&gt;
 isnotify  if v1 is a user in your notify list.&lt;br /&gt;
&lt;br /&gt;
To negate an operator you can prefix it with an ! exclamation mark.&lt;br /&gt;
&lt;br /&gt;
{{Stub}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$lower&amp;diff=1187</id>
		<title>$lower</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$lower&amp;diff=1187"/>
		<updated>2005-09-09T12:57:19Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns text in lowercase.&lt;br /&gt;
&lt;br /&gt;
 $lower(text)&lt;br /&gt;
&lt;br /&gt;
$lower forces its parameter to lowercase characters.&lt;br /&gt;
&lt;br /&gt;
$lower(&#039;&#039;FOO&#039;&#039;) returns &#039;&#039;foo&#039;&#039;, and $lower(&#039;&#039;bAr&#039;&#039;) returns &#039;&#039;bar&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[$upper()]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Text and Number Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$chan_(remote)&amp;diff=2088</id>
		<title>$chan (remote)</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$chan_(remote)&amp;diff=2088"/>
		<updated>2005-09-09T06:30:38Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns the name of the channel for a specific event. For all non-channel [[:Category:events|events]] $chan will be [[$null]].&lt;br /&gt;
&lt;br /&gt;
 $chan&lt;br /&gt;
&lt;br /&gt;
It takes no parameters.&lt;br /&gt;
&lt;br /&gt;
 on *:text:hello:#mIRC:{ [[msg]] $chan [[$nick (remote)|$nick]] hello, and welcome to $chan $+ ! }&lt;br /&gt;
&lt;br /&gt;
You can also use # to evaluate channel name. Ex:&lt;br /&gt;
 welcome to $chan&lt;br /&gt;
 welcome to #&lt;br /&gt;
would return to same value.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[$active]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Remote Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$chan&amp;diff=4204</id>
		<title>$chan</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$chan&amp;diff=4204"/>
		<updated>2005-09-09T06:26:29Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: split&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Categories ==&lt;br /&gt;
* [[$chan (remote)|$chan]] Remote Identifiers&lt;br /&gt;
* [[$chan (window)|$chan]] Window Identifiers&lt;br /&gt;
&lt;br /&gt;
{{Disambling}}&lt;br /&gt;
[[Category:Remote Identifiers]][[Category:Window Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$chan&amp;diff=766</id>
		<title>$chan</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$chan&amp;diff=766"/>
		<updated>2005-09-09T06:24:31Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: $chan moved to $chan (window)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[$chan (window)]]&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$nick_(remote)&amp;diff=1683</id>
		<title>$nick (remote)</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$nick_(remote)&amp;diff=1683"/>
		<updated>2005-09-09T06:23:05Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns the nickname of the user associated with an event.&lt;br /&gt;
&lt;br /&gt;
 $nick&lt;br /&gt;
&lt;br /&gt;
It has no parameters.&lt;br /&gt;
&lt;br /&gt;
 on *:text:*help*:#mIRC:{ [[msg]] [[$chan (remote)|$chan]] $nick hold your horses, I&#039;m coming. }&lt;br /&gt;
&lt;br /&gt;
== See Also == &lt;br /&gt;
* [[$nick (nick)|$nick]] Nick and Address Identifiers&lt;br /&gt;
&lt;br /&gt;
[[Category:Remote Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$nick&amp;diff=4202</id>
		<title>$nick</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$nick&amp;diff=4202"/>
		<updated>2005-09-09T06:14:59Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Categories ==&lt;br /&gt;
* [[$nick (nick)|$nick]] Nick and Address Identifiers&lt;br /&gt;
* [[$nick (remote)|$nick]] Remote Identifiers&lt;br /&gt;
&lt;br /&gt;
{{Disambling}}&lt;br /&gt;
[[Category:Nick and Address Identifiers]][[Category:Remote Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$opnick&amp;diff=4201</id>
		<title>$opnick</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$opnick&amp;diff=4201"/>
		<updated>2005-09-05T20:57:49Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Events ==&lt;br /&gt;
* [[on op]]&lt;br /&gt;
* [[on deop]]&lt;br /&gt;
&lt;br /&gt;
{{Disambling}}&lt;br /&gt;
[[Category:Nick and Address Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$vnick&amp;diff=4200</id>
		<title>$vnick</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$vnick&amp;diff=4200"/>
		<updated>2005-09-05T20:53:10Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Events ==&lt;br /&gt;
* [[on voice]]&lt;br /&gt;
* [[on devoice]]&lt;br /&gt;
&lt;br /&gt;
{{Disambling}}&lt;br /&gt;
[[Category:Nick and Address Identifiers]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Template:Disambling&amp;diff=4199</id>
		<title>Template:Disambling</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Template:Disambling&amp;diff=4199"/>
		<updated>2005-09-05T20:52:36Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: more margin, style&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| style=&amp;quot;width: 100%; border: 1px solid #aaa; background: #F9F9F9; padding: 3px; margin-bottom: 30px; margin-top: 30px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|width=&amp;quot;50&amp;quot; |[[Image:Disambig.png|left|45px|Disambiguation]]&lt;br /&gt;
|&#039;&#039;This is a disambiguation page &amp;amp;mdash; this means that one or more articles list this page and it holds reference to one or more articles or it has different meanings.&#039;&#039;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Template:Disambling&amp;diff=759</id>
		<title>Template:Disambling</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Template:Disambling&amp;diff=759"/>
		<updated>2005-09-05T20:43:51Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| style=&amp;quot;width: 100%; border: 1px solid #aaa; background: #F9F9F9; padding: 3px; margin-bottom: 30px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|width=&amp;quot;50&amp;quot; |[[Image:Disambig.png|left|45px|Disambiguation]]&lt;br /&gt;
|&#039;&#039;This is a disambiguation page &amp;amp;mdash; this means that one or more articles list this page and it holds reference to one or more articles or it has different meanings.&#039;&#039;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=File:Disambig.png&amp;diff=4198</id>
		<title>File:Disambig.png</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=File:Disambig.png&amp;diff=4198"/>
		<updated>2005-09-05T20:31:45Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: * Description: Symbol of Disambiguation
* Source: Own drawing, 2005
* Author: Stephan Baum
* Licence: GNU FDL&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Description: Symbol of Disambiguation&lt;br /&gt;
* Source: Own drawing, 2005&lt;br /&gt;
* Author: Stephan Baum&lt;br /&gt;
* Licence: GNU FDL&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_voice&amp;diff=4196</id>
		<title>On voice</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_voice&amp;diff=4196"/>
		<updated>2005-09-05T18:00:12Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on VOICE event triggers when a user on a channel is voiced.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:VOICE:&amp;lt;#[,#]&amp;gt;:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[$vnick]] refers to the user who was voiced.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Triggers when a user with level 999 was voiced in #help.script or #mIRC and devoices him again:&lt;br /&gt;
&lt;br /&gt;
 on 999:VOICE:#help.script,#mIRC: { [[mode]] [[$chan]] -v $vnick }&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[On_devoice|On devoice]] triggers when a user was devoiced.&lt;br /&gt;
* [[Access Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_devoice&amp;diff=4197</id>
		<title>On devoice</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_devoice&amp;diff=4197"/>
		<updated>2005-09-05T17:59:40Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on DEVOICE event triggers when a user on a channel is devoiced.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:DEVOICE:&amp;lt;#[,#]&amp;gt;:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[$vnick]] refers to the user who was devoiced.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Triggers when a user with level owner was devoiced in #help.script or #mIRC and voices him again:&lt;br /&gt;
&lt;br /&gt;
 on 999:DEVOICE:#help.script,#mIRC: { mode $chan +v $vnick }&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[On_voice|On voice]] triggers when a user was voiced.&lt;br /&gt;
* [[Access Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_op&amp;diff=4194</id>
		<title>On op</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_op&amp;diff=4194"/>
		<updated>2005-09-05T17:59:10Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on OP event triggers when a user on a channel is opped.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:OP:&amp;lt;#[,#]&amp;gt;:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[$opnick]] refers to the user who was oped.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Triggers when a user with level 999 was opped in #help.script or #mIRC and deops him again:&lt;br /&gt;
&lt;br /&gt;
 on 999:OP:#help.script,#mIRC: { mode $chan -o $opnick }&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[On_deop|On deop]] triggers when a user was deopped.&lt;br /&gt;
* [[Access Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_deop&amp;diff=2285</id>
		<title>On deop</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_deop&amp;diff=2285"/>
		<updated>2005-09-05T17:58:54Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on DEOP event triggers when a user on a channel is deopped.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:DEOP:&amp;lt;#[,#]&amp;gt;:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[$opnick]] refers to the user who was deoped.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Triggers when a user with level owner was deopped in #help.script or #mIRC and ops him again:&lt;br /&gt;
&lt;br /&gt;
 on owner:DEOP:#help.script,#mIRC: { mode $chan +o $opnick }&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[On_op|On op]] triggers when a user was opped.&lt;br /&gt;
* [[Access Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_op&amp;diff=756</id>
		<title>On op</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_op&amp;diff=756"/>
		<updated>2005-09-05T17:58:17Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on OP event triggers when a user on a channel is opped.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:OP:&amp;lt;#[,#]&amp;gt;:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[$opnick]] refers to the user who was oped.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Triggers when a user with level 999 was opped in #help.script or #mIRC and deops him again:&lt;br /&gt;
&lt;br /&gt;
 on 999:OP:#help.script,#mIRC: { mode $chan -o $opnick }&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
* [[On_deop|On deop]] triggers when a user was deopped.&lt;br /&gt;
* [[:Category:Access Levels|Access Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_connect&amp;diff=4126</id>
		<title>On connect</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_connect&amp;diff=4126"/>
		<updated>2005-09-05T16:47:49Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on CONNECT event triggers when [[mIRC]] connects to an [[IRC]] Server right after the [[MOTD]] is displayed.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:CONNECT:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On connect event is most commonly used to perform commands right after joining a server, such as automaticly joining channels or authenticate with [[Q]] bot.&lt;br /&gt;
&lt;br /&gt;
 on *:connect:{&lt;br /&gt;
   if ([[$network]] === QuakeNet) &amp;amp;&amp;amp; ([[$right]]([[$server]], 13) === .quakenet.org) {&lt;br /&gt;
     !var %u = username&lt;br /&gt;
     !var %p = password&lt;br /&gt;
     !.msg Q@CServe.quakenet.org auth %u %p&lt;br /&gt;
 &lt;br /&gt;
     [[join]] #help.script&lt;br /&gt;
     join #mIRC&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Please note, that keeping your account secure is up to you, the user, and cannot be achieved by anyone/thing else. So using automaticly authenticating scripts or storing your Q-password to remote file is your own choise and only You. There&#039;s always existing security risk. Read [http://www.quakenet.org/faq/faq.php?c=160&amp;amp;expand=yup&amp;amp;l=0 Security FAQ] at QuakeNet&#039;s site for further information.&lt;br /&gt;
&lt;br /&gt;
{{Author|Tovrleaf}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[on_disconnect|on disconnect]]&lt;br /&gt;
* [[on_connectfail|on connectfail]]&lt;br /&gt;
* {{Relatedraws|join}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_connect&amp;diff=753</id>
		<title>On connect</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_connect&amp;diff=753"/>
		<updated>2005-09-05T15:47:56Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: added link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on CONNECT event triggers when [[mIRC]] connects to an [[IRC]] Server right after the [[MOTD]] is displayed.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:CONNECT:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On connect event is most commonly used to perform commands right after joining a server, such as automaticly joining channels or authenticate with [[Q]] bot.&lt;br /&gt;
&lt;br /&gt;
 on *:connect:{&lt;br /&gt;
   if ([[$network]] === QuakeNet) &amp;amp;&amp;amp; ([[$right]]([[$server]], 13) === .quakenet.org) {&lt;br /&gt;
     !var %u = username&lt;br /&gt;
     !var %p = password&lt;br /&gt;
     !.msg Q@CServe.quakenet.org auth %u %p&lt;br /&gt;
 &lt;br /&gt;
     [[join]] #help.script&lt;br /&gt;
     join #mIRC&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Please note, that keeping your account secure is up to you, the user, and cannot be achieved by anyone/thing else. So using automaticly authenticating scripts or storing your Q-password to remote file is your own choise and only You. There&#039;s always existing security risk. Read [http://www.quakenet.org/faq/faq.php?c=160&amp;amp;expand=yup&amp;amp;l=0 Security FAQ] at QuakeNet&#039;s site for further information.&lt;br /&gt;
&lt;br /&gt;
{{Author|Tovrleaf}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[on_disconnect|on disconnect]]&lt;br /&gt;
* [[on_connectfail|on connectfail]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Category:Events&amp;diff=1667</id>
		<title>Category:Events</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Category:Events&amp;diff=1667"/>
		<updated>2005-09-05T15:46:29Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[Category:Remote]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=On_connect&amp;diff=752</id>
		<title>On connect</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=On_connect&amp;diff=752"/>
		<updated>2005-09-05T15:45:59Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The on CONNECT event triggers when [[mIRC]] connects to an [[IRC]] Server right after the [[MOTD]] is displayed.&lt;br /&gt;
&lt;br /&gt;
 on &amp;lt;level&amp;gt;:CONNECT:&amp;lt;commands&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On connect event is most commonly used to perform commands right after joining a server, such as automaticly joining channels or authenticate with [[Q]] bot.&lt;br /&gt;
&lt;br /&gt;
 on *:connect:{&lt;br /&gt;
   if ([[$network]] === QuakeNet) &amp;amp;&amp;amp; ([[$right]]([[$server]], 13) === .quakenet.org) {&lt;br /&gt;
     !var %u = username&lt;br /&gt;
     !var %p = password&lt;br /&gt;
     !.msg Q@CServe.quakenet.org auth %u %p&lt;br /&gt;
 &lt;br /&gt;
     join #help.script&lt;br /&gt;
     join #mIRC&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Please note, that keeping your account secure is up to you, the user, and cannot be achieved by anyone/thing else. So using automaticly authenticating scripts or storing your Q-password to remote file is your own choise and only You. There&#039;s always existing security risk. Read [http://www.quakenet.org/faq/faq.php?c=160&amp;amp;expand=yup&amp;amp;l=0 Security FAQ] at QuakeNet&#039;s site for further information.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[on_disconnect|on disconnect]]&lt;br /&gt;
* [[on_connectfail|on connectfail]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Events]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=IRC&amp;diff=4181</id>
		<title>IRC</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=IRC&amp;diff=4181"/>
		<updated>2005-09-04T20:58:07Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: redirected&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#Redirect [[Category:IRC]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Template:User_da&amp;diff=3806</id>
		<title>Template:User da</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Template:User_da&amp;diff=3806"/>
		<updated>2005-09-03T08:58:41Z</updated>

		<summary type="html">&lt;p&gt;Tovrleaf: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float:left;border:solid #6EF7A7 1px;margin:1px&amp;quot;&amp;gt;&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;width:238px;background:#C5FCDC&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:45px;height:45px;background:#6EF7A7;text-align:center;font-size:14pt&amp;quot; | &#039;&#039;&#039;da&#039;&#039;&#039;&lt;br /&gt;
| style=&amp;quot;font-size:8pt;padding:4pt;line-height:1.25em&amp;quot; | Denne bruger har &#039;&#039;&#039;[[:Category:User da|dansk]]&#039;&#039;&#039; som &#039;&#039;&#039;modersmål&#039;&#039;&#039;.&lt;br /&gt;
|}&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:User da|{{PAGENAME}}]]&lt;/div&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
</feed>