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

	<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>2008-01-05T22:55:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-01-05T22:55:15-04:00</updated>

		<published>2008-01-05T22:55:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79830#p79830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79830#p79830"/>
		<title type="html"><![CDATA[Help customizing a script - adding user IP to the list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79830#p79830"><![CDATA[
From tcl-commands.doc:<br><div class="codebox"><p>Code: </p><pre><code>  dnslookup &lt;ip-address/hostname&gt; &lt;proc&gt; [[arg1] [arg2] ... [argN]]    Description: This issues an asynchronous dns lookup request. The      command will block if dns module is not loaded; otherwise it will      either return immediately or immediately call the specified proc      (e.g. if the lookup is already cached).      As soon as the request completes, the specified proc will be called      as follows:       &lt;proc&gt; &lt;ipaddress&gt; &lt;hostname&gt; &lt;status&gt; [[arg1] [arg2] ... [argN]]      status is 1 if the lookup was successful and 0 if it wasn't. All      additional parameters (called arg1, arg2 and argN above) get      appended to the proc's other parameters.    Returns: nothing    Module: core</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Jan 05, 2008 10:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[m4rtin]]></name></author>
		<updated>2007-12-26T04:12:17-04:00</updated>

		<published>2007-12-26T04:12:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79542#p79542</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79542#p79542"/>
		<title type="html"><![CDATA[Help customizing a script - adding user IP to the list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79542#p79542"><![CDATA[
Hi, I'm trying to find a way to modify a modified version of <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1061" class="postlink">Write Channel Nicklist 2 File</a> by SpOoK.<br><br>What I'm trying to do is to add the users IP address after the nick. Like this<div class="codebox"><p>Code: </p><pre><code>nick - 255.255.255.0nick2 - 192.168.1.100etc</code></pre></div>The current code I have now is:<div class="codebox"><p>Code: </p><pre><code>set ver "1.1-opp"set dumpfile "/nicklist.txt"set channel "#channelname"# Bind Events we want to catch...# Note: Remove the following 6 lines for timer only update. Reccomended for larger channels.bind sign - "$channel %" nicklist:makebind part - "$channel %" nicklist:makebind splt - "$channel %" nicklist:makebind join - "$channel %" nicklist:makebind kick - "$channel %" nicklist:makebind nick - "$channel %" nicklist:makebind mode - "$channel %" nicklist:makebind raw - "353" nicklist_opp:makeproc nicklist:make {args} {global channelputserv "NAMES $channel"}proc nicklist_opp:make {from keyword argz} {global dumpfile channel botnickset nicklist [split [lindex [split [string trim $argz] ":"] 1] " "]set templist ""set ownerlist ""set protlist ""set oplist ""set hoplist ""set voicelist ""set userlist ""foreach user $nicklist {if {[string first "~" $user] == 0} {lappend ownerlist $user} elseif {[string first "!" $user] == 0} {lappend protlist $user} elseif {[string first "@" $user] == 0} {lappend oplist $user} elseif {[string first "%" $user] == 0} {lappend hoplist $user} elseif {[string first "+" $user] == 0} {lappend voicelist $user} else {lappend userlist $user}}set ownerlist [lsort -dictionary $ownerlist]set protlist [lsort -dictionary $protlist]set oplist [lsort -dictionary $oplist]set hoplist [lsort -dictionary $hoplist]set voicelist [lsort -dictionary $voicelist]set userlist [lsort -dictionary $userlist]foreach user $ownerlist {lappend templist $user}foreach user $protlist {lappend templist $user}foreach user $oplist {lappend templist $user}foreach user $hoplist {lappend templist $user}foreach user $voicelist {lappend templist $user}foreach user $userlist {lappend templist $user}set outputfile [open $dumpfile w]foreach user $templist {puts $outputfile $user}close $outputfileputlog "Saving $channel NickList..."return 1}if {![info exists nicklist_running]} {timer 60 nicklist:makeset nicklist_running 1}nicklist:makeputlog "Write Channel Nicklist to File v$ver by SpOoK loaded."</code></pre></div>Thanks in advanse!<br><br><br>Regards,<br>Martin<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9037">m4rtin</a> — Wed Dec 26, 2007 4:12 am</p><hr />
]]></content>
	</entry>
	</feed>
