<?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/19933" />

	<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>2015-04-20T10:51:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-20T10:51:36-04:00</updated>

		<published>2015-04-20T10:51:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103882#p103882</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103882#p103882"/>
		<title type="html"><![CDATA[Virtual host of bot (process into process)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103882#p103882"><![CDATA[
<blockquote class="uncited"><div>He doesn't need to do a whois on the bot when can get creative and instead use getchanhost on the bot and will result current vhost. At least in theory. Will see what results he will get in the other topic that he opened with about the same subject.</div></blockquote>It is truly in theory.<blockquote class="uncited"><div>I think the original poster said something about getchanhost failing to get an address that matched.</div></blockquote>[matchaddr $target "$::botnick![getchanhost $::botnick]"] return 0 (zero)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon Apr 20, 2015 10:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-20T09:30:19-04:00</updated>

		<published>2015-04-20T09:30:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103881#p103881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103881#p103881"/>
		<title type="html"><![CDATA[Virtual host of bot (process into process)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103881#p103881"><![CDATA[
<blockquote class="uncited"><div>...<br>This info should not change while you are still connected, and can be updated as needed every time the bot connects.<br>...</div></blockquote>This made me remember:<br>Are not most vhosts controlled by Nickserv?   In that the vhost is not applied until the nick identifies with Nickserv.<br><br>I think the original poster said something about getchanhost failing to get an address that matched.<br>Could this have been the problem?<br><br>Just a thought ....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Apr 20, 2015 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-20T01:34:02-04:00</updated>

		<published>2015-04-20T01:34:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103879#p103879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103879#p103879"/>
		<title type="html"><![CDATA[Virtual host of bot (process into process)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103879#p103879"><![CDATA[
He doesn't need to do a whois on the bot when can get creative and instead use <em class="text-italics">getchanhost</em> on the bot and will result current vhost. At least in theory. Will see what results he will get in the <a href="http://forum.egghelp.org/viewtopic.php?t=19931" class="postlink">other</a> topic that he opened with about the same subject.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 20, 2015 1:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-20T00:10:32-04:00</updated>

		<published>2015-04-20T00:10:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103874#p103874</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103874#p103874"/>
		<title type="html"><![CDATA[Virtual host of bot (process into process)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103874#p103874"><![CDATA[
You can't just put the proc whois::311 inside of the process that is calling the whois, and then just continue on as though you have the returned results from the server.<br>At the time this line runs: set host1 "*!*@[join $vhost]" :there has not been a return from the server yet, and you have no bind to even catch that raw return.<br>Also, don't use :: in your process names unless you fully understand tcl namespaces, and you handle the namespace correctly.<br><br>If I was trying to do this sort of thing, I would whois the bot on connection to the network, and save the required nick!user@vhost info to a global var I could call when needed.<br>This info should not change while you are still connected, and can be updated as needed every time the bot connects.<br>That would keep you from having to whois the bot every time someone sets a ban on any channel the bot is on.<br><br>Then, all you have to do when a ban is set, is string match -nocase the new ban mask against the stored nick!user@vhost of the bot, and can continue without having to wait for a whois to be returned by the server:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Apr 20, 2015 12:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-19T22:51:27-04:00</updated>

		<published>2015-04-19T22:51:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103871#p103871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103871#p103871"/>
		<title type="html"><![CDATA[Virtual host of bot (process into process)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103871#p103871"><![CDATA[
I need the vhost (virtual host) my bot, that I did not return the <em class="text-italics">getchanhost</em>, <em class="text-italics">matchaddr</em> or <em class="text-italics">maskhost</em> commands.<br><br>If I do a whois to my bot, your vhost is different than other commands return.<br><br>The <em class="text-italics">matchaddr</em> command returns the real host, that is, the company belonging to the internet .:<br>mybot!<a href="mailto:botijo@anteldata.net.uy">botijo@anteldata.net.uy</a><br><br>The vhost my bot is another:<br>mybot!<a href="mailto:botijo@hello.your.best.bot">botijo@hello.your.best.bot</a><br><br>I need a command to return vhost bot.<br><br>I found the solution, but have the problem of getting the value of the <em class="text-italics">variable vhost</em> from one process to another.<div class="codebox"><p>Code: </p><pre><code>bind mode - "% +b" check:ban proc check:ban {nick host hand chan mode target} { global canal_admin vhost  putserv "WHOIS $::botnick"proc whois::311 {from key botnick } {global canal_admin vhost  if {[regexp -- {^[^\s]+\s(.+?)\s(.+?)\s(.+?)\s\*\s\:(.+)$} $botnick wholematch nick ident host realname]} {    set vhost [stripcodes bc ${host}]putserv "PRIVMSG $canal_admin :boT vhost: $vhost" }} set host1 "*!*@[join $vhost]".................more stuff................</code></pre></div><strong class="text-strong">Tcl error [check:ban]: can't read "vhost": no such variable</strong><br>The problem starts in the following line:<blockquote class="uncited"><div>set host1 "*!*@[join $vhost]" </div></blockquote>You can not set the <em class="text-italics">host1</em> variable, because it can not read the <em class="text-italics">vhost</em> variable.<br><br>Is there any way to fix this code, or another way to get the vhost bot?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 19, 2015 10:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
