<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13011" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-01-25T15:45:50-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13011</id>

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-25T15:45:50-04:00</updated>

		<published>2007-01-25T15:45:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69920#p69920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69920#p69920"/>
		<title type="html"><![CDATA[hostname -&gt; nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69920#p69920"><![CDATA[
Try:<div class="codebox"><p>Code: </p><pre><code>set edu(hostname) "*!*@edu.users.undernet.org"bind pub o .find edu:findproc edu:find {nickname hostname handle channel text} {   global edu   foreach n [chanlist $channel] {      if {[string match -nocase $edu(hostname) $n![getchanhost $n $channel]]} {         set found $n         break      }   }   if {[info exists found]} {      putserv "privmsg $channel :Found $n"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jan 25, 2007 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2007-01-25T04:32:05-04:00</updated>

		<published>2007-01-25T04:32:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69909#p69909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69909#p69909"/>
		<title type="html"><![CDATA[hostname -&gt; nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69909#p69909"><![CDATA[
It's not for the bot, it's for something else<br><br>It doesn't work <div class="codebox"><p>Code: </p><pre><code>set edu(hostname) "*!*@edu.users.undernet.org"bind pub o|- .find edu:findproc edu:find {nickname hostname handle channel text} {global eduforeach n [chanlist $channel] {if {[string match -nocase $edu(hostname) $n![getchanhost $n $channel]]} {# Found nick: $nputquick "PRIVMSG $channel :Found $n"break}}}</code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8324">edu</a> — Thu Jan 25, 2007 4:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-24T16:44:10-04:00</updated>

		<published>2007-01-24T16:44:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69894#p69894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69894#p69894"/>
		<title type="html"><![CDATA[hostname -&gt; nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69894#p69894"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach n [chanlist $chan] { if {[string match -nocase $edu(bot_host) $n![getchanhost $n $chan]]} {  # Found nick: $n  break }}</code></pre></div>But what's the purpose of that? if it's to know if your bot is on the channel then a simple [botonchan $chan] will do that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jan 24, 2007 4:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[edu]]></name></author>
		<updated>2007-01-24T05:49:16-04:00</updated>

		<published>2007-01-24T05:49:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69882#p69882</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69882#p69882"/>
		<title type="html"><![CDATA[hostname -&gt; nickname]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69882#p69882"><![CDATA[
Hi<br><br>I have a little problem ...<div class="codebox"><p>Code: </p><pre><code>set edu(bot_host) "*!*@bot.users.undernet.org"</code></pre></div> <br><br>After I've setted that variable I want to find if that 'hostname' is on the channel where the bot is running. I want to switch the hostname into the host's nickname  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> , ex:<br><br>If nickname "eggie" has hostname "*!*@bot.users.undernet.org", I want to 'show' that nickname<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8324">edu</a> — Wed Jan 24, 2007 5:49 am</p><hr />
]]></content>
	</entry>
	</feed>
