<?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=Away_script</id>
	<title>Away script - 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=Away_script"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Away_script&amp;action=history"/>
	<updated>2026-05-14T14:31:18Z</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=Away_script&amp;diff=3791&amp;oldid=prev</id>
		<title>Tovrleaf: edited links</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Away_script&amp;diff=3791&amp;oldid=prev"/>
		<updated>2005-09-15T15:23:38Z</updated>

		<summary type="html">&lt;p&gt;edited links&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:23, 15 September 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-l34&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&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;  ;start a timer for the awaycheck&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;  ;start a timer for the awaycheck&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;  [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on_connect&lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on *:&lt;/del&gt;connect]]:{&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;  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on *:&lt;/ins&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on connect&lt;/ins&gt;|connect]]:{&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;   ;the . is so you won&amp;#039;t see &amp;quot;* Timer 1 activated&amp;quot; when you start it&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;   ;the . is so you won&amp;#039;t see &amp;quot;* Timer 1 activated&amp;quot; when you start it&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;   ;the 0 is to let it run forever, or till you turn mirc off or your computer crashes :)&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;   ;the 0 is to let it run forever, or till you turn mirc off or your computer crashes :)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tovrleaf</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Away_script&amp;diff=818&amp;oldid=prev</id>
		<title>Tovrleaf: links enabled</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Away_script&amp;diff=818&amp;oldid=prev"/>
		<updated>2005-08-30T16:56:22Z</updated>

		<summary type="html">&lt;p&gt;links enabled&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is an example of a basic away script, including autoaway and option to send a message when you&amp;#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&amp;#039;ll be marked as away, else you&amp;#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&amp;#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&amp;#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&amp;#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&amp;#039;re not away yet, and if $idle (the amount of seconds you&amp;#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&amp;#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_connect|on *:connect]]:{&lt;br /&gt;
  ;the . is so you won&amp;#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&amp;#039;t want you&amp;#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&amp;#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>
</feed>