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

	<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-03-04T00:18:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[fayettemat]]></name></author>
		<updated>2007-03-04T00:18:35-04:00</updated>

		<published>2007-03-04T00:18:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70954#p70954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70954#p70954"/>
		<title type="html"><![CDATA[Doing a whois to print out to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70954#p70954"><![CDATA[
if I bound this to a pubm bind and striped the colors and codes it would be a handy ban script wouldnt it? (the bots a server admin)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8582">fayettemat</a> — Sun Mar 04, 2007 12:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-02-27T21:30:17-04:00</updated>

		<published>2007-02-27T21:30:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70816#p70816</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70816#p70816"/>
		<title type="html"><![CDATA[Doing a whois to print out to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70816#p70816"><![CDATA[
Not at the end. In the same place as the original unbind, just enclose it with catch {}  so it doesn't crash the bot. <br><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/catch.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/catch.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Feb 27, 2007 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fayettemat]]></name></author>
		<updated>2007-02-27T18:02:48-04:00</updated>

		<published>2007-02-27T18:02:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70806#p70806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70806#p70806"/>
		<title type="html"><![CDATA[Doing a whois to print out to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70806#p70806"><![CDATA[
<blockquote class="uncited"><div>You might want to also catch your unbinds, otherwise the bot could crash if it tries to unbind something that's not already bound:<br><br>catch {unbind RAW - 401 whois:nosuch}</div></blockquote>so I would just catch {unbind RAW - 401 whois:nosuch} at the end of the file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8582">fayettemat</a> — Tue Feb 27, 2007 6:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-02-27T16:51:11-04:00</updated>

		<published>2007-02-27T16:51:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70803#p70803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70803#p70803"/>
		<title type="html"><![CDATA[Doing a whois to print out to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70803#p70803"><![CDATA[
You might want to also catch your unbinds, otherwise the bot could crash if it tries to unbind something that's not already bound:<br><br>catch {unbind RAW - 401 whois:nosuch}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Feb 27, 2007 4:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fayettemat]]></name></author>
		<updated>2007-02-27T15:09:06-04:00</updated>

		<published>2007-02-27T15:09:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70799#p70799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70799#p70799"/>
		<title type="html"><![CDATA[Doing a whois to print out to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70799#p70799"><![CDATA[
ok I'll try that Et and Sir_Fz the problem is that its not writing to a file and now it says that my code is invalid and I looked at that and I'm going to try again will edit post with results: wish me luck!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8582">fayettemat</a> — Tue Feb 27, 2007 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[et109]]></name></author>
		<updated>2007-02-27T14:33:21-04:00</updated>

		<published>2007-02-27T14:33:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70797#p70797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70797#p70797"/>
		<title type="html"><![CDATA[whois info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70797#p70797"><![CDATA[
if the code you are using is a match to this code, you have a typo in proc whois:info<br><div class="codebox"><p>Code: </p><pre><code>      set host [lindex [spllit $arguments] 3]</code></pre></div>should be <div class="codebox"><p>Code: </p><pre><code>      set host [lindex [split $arguments] 3]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8745">et109</a> — Tue Feb 27, 2007 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-02-27T14:24:09-04:00</updated>

		<published>2007-02-27T14:24:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70795#p70795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70795#p70795"/>
		<title type="html"><![CDATA[Doing a whois to print out to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70795#p70795"><![CDATA[
What's the problem you're facing?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Feb 27, 2007 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fayettemat]]></name></author>
		<updated>2007-02-27T13:33:48-04:00</updated>

		<published>2007-02-27T13:33:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70793#p70793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70793#p70793"/>
		<title type="html"><![CDATA[Doing a whois to print out to a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70793#p70793"><![CDATA[
ok here's the break down: I have an Eggdrop that I use for a protection bot and convince bot, it is Opered so I am not worried about it flooding but I cannot get the dumb bot to send the text I want to a file<div class="codebox"><p>Code: </p><pre><code> bind JOIN - * whois:nickproc whois:nick { nick  uhost hand chan arguments } {set target == "$nick"putquick "WHOIS $target $target" -nextbind RAW - 401 whois:nosuchbind RAW - 311 whois:info}proc whois:nosuch { from keyword arguments } {putquick "There is so such nick name!"#unbind the raw#unbind RAW - 401 whois:nosuch}proc whois:info { from keyword arguments }{set chan $chanset nick $nickset ident [lindex [split $arguments] 2]set host [lindex [spllit $arguments] 3]set realname [string range [join [lrange $arguements 5 end]] 1 end]#unbind The Raw#unbind RAW - 311 whois:info#saving to a file#set line_to_add "$nick\!$ident\@$host * $realname"set fname "testfile.txt"set fp [open $fname "a"]puts $fp $line_to_addclose $fp#end saving to a file#}#thanks to egghelp.org for the writting to file learning and MeTroiD for his #whois script I used both in an attempt to make this script!#putlog "Whois on join ver 1.0b1"</code></pre></div>as you can see what I am trying to do is to have it automatic in saving the users host upon joining, the reason I use this is because when I get complaints about spam from certian nicks I want to be able to have their full host and /whois &lt;nick&gt; only lasts for about 24 hrs <br>ps: it wont load lately<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8582">fayettemat</a> — Tue Feb 27, 2007 1:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
