<?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=%24hget</id>
	<title>$hget - 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=%24hget"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$hget&amp;action=history"/>
	<updated>2026-06-04T03:29:58Z</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=$hget&amp;diff=4319&amp;oldid=prev</id>
		<title>Vliedel at 13:06, 3 February 2011</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$hget&amp;diff=4319&amp;oldid=prev"/>
		<updated>2011-02-03T13:06:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:06, 3 February 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l58&quot;&gt;Line 58:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 58:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Hash Table]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Hash Table]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;[[Category:Identifiers]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vliedel</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$hget&amp;diff=2833&amp;oldid=prev</id>
		<title>Doomie: hash, not hashh</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$hget&amp;diff=2833&amp;oldid=prev"/>
		<updated>2005-11-20T21:00:56Z</updated>

		<summary type="html">&lt;p&gt;hash, not hashh&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:00, 20 November 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; 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;Using &#039;&#039;/showhash &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;testhashh&lt;/del&gt;&#039;&#039; will echo:&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;Using &#039;&#039;/showhash &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;testhash&lt;/ins&gt;&#039;&#039; will echo:&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;  user1 =&amp;gt; user1@random.host&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;  user1 =&amp;gt; user1@random.host&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;  user2 =&amp;gt; user2@another.host&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;  user2 =&amp;gt; user2@another.host&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Doomie</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$hget&amp;diff=936&amp;oldid=prev</id>
		<title>Doomie at 20:59, 20 November 2005</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$hget&amp;diff=936&amp;oldid=prev"/>
		<updated>2005-11-20T20:59:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;As you can give $hget different parameters, they will be listed one by one:&lt;br /&gt;
&lt;br /&gt;
*Returns name of a hash table if it exists, or returns the name of the Nth hash table.&lt;br /&gt;
 $hget(name/N)[.size]&lt;br /&gt;
&lt;br /&gt;
The size property returns the N size of table, as specified in [[Hmake|/hmake]].&lt;br /&gt;
&lt;br /&gt;
*Returns the data associated with an item in the specified hash table.&lt;br /&gt;
 $hget(name/N, item)[.unset]&lt;br /&gt;
The unset property returns the time remaining before an item is unset.&lt;br /&gt;
&lt;br /&gt;
*Assigns the contents of an item to a &amp;amp;binvar.&lt;br /&gt;
 $hget(name/N, item, &amp;amp;binvar)&lt;br /&gt;
&lt;br /&gt;
*This allows you to reference the table as an index from 0 to N, in order to look up the Nth item in the table.&lt;br /&gt;
 $hget(name/N, N).item&lt;br /&gt;
&lt;br /&gt;
If N is zero, it returns the total number of items in the table.&lt;br /&gt;
&lt;br /&gt;
You can also reference the Nth data value directly with $hget().data, but note, that this method is provided as a convenience, it is not an efficient way to use the hash table.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
At first, we need a hashtable for all examples, so lets make one:&lt;br /&gt;
 ; have a nice alias called &amp;#039;&amp;#039;makehash&amp;#039;&amp;#039; for it&lt;br /&gt;
 [[alias]] makehash {&lt;br /&gt;
  ; here we actually &amp;#039;&amp;#039;make&amp;#039;&amp;#039; the hashtable&lt;br /&gt;
  [[hmake]] testhash 100&lt;br /&gt;
  ; now lets put data in it&lt;br /&gt;
  [[hadd]] testhash Dana Dana@staff.quakenet.org&lt;br /&gt;
  hadd testhash user1 user1@random.host&lt;br /&gt;
  hadd testhash user2 user2@another.host&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 [[echo]] -a $hget(testhash) has the size: $hget(testhash).size&lt;br /&gt;
This example will echo &amp;#039;&amp;#039;makehash has the size: 100&amp;#039;&amp;#039;.&lt;br /&gt;
 echo -a $hget(testhash,user1)&lt;br /&gt;
This one will echo &amp;#039;&amp;#039;user1@random.host&amp;#039;&amp;#039; as it&amp;#039;s the data connected to &amp;#039;&amp;#039;user1&amp;#039;&amp;#039;.&lt;br /&gt;
 &lt;br /&gt;
The following, more complex example will loop through the entire table and echo everything:&lt;br /&gt;
 ; lets make a little alias called &amp;#039;&amp;#039;showhash&amp;#039;&amp;#039;. At the end, it will look like &amp;#039;&amp;#039;/showhash &amp;lt;name&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
 alias showhash {&lt;br /&gt;
  ; echo the name and a kind of &amp;quot;table header&amp;quot;&lt;br /&gt;
  echo -a $1&lt;br /&gt;
  echo -a item =&amp;gt; data&lt;br /&gt;
  [[var]] %i = 1&lt;br /&gt;
  ; lets loop through all items. $hget($1,0).item will return the total amount of items.&lt;br /&gt;
  [[while]] (%i &amp;lt;= $hget($1,0).item) {&lt;br /&gt;
   echo -a $hget($1,%i).item =&amp;gt; $hget($1,%i).data&lt;br /&gt;
   ; increase looping-variable&lt;br /&gt;
   inc %i&lt;br /&gt;
  } &lt;br /&gt;
 }&lt;br /&gt;
Using &amp;#039;&amp;#039;/showhash testhashh&amp;#039;&amp;#039; will echo:&lt;br /&gt;
 user1 =&amp;gt; user1@random.host&lt;br /&gt;
 user2 =&amp;gt; user2@another.host&lt;br /&gt;
 Dana =&amp;gt; Dana@staff.quakenet.org&lt;br /&gt;
&lt;br /&gt;
[[Category:Hash Table]]&lt;/div&gt;</summary>
		<author><name>Doomie</name></author>
	</entry>
</feed>