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

	<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-12-16T15:31:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2008-12-16T15:31:35-04:00</updated>

		<published>2008-12-16T15:31:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86277#p86277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86277#p86277"/>
		<title type="html"><![CDATA[hehhe]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86277#p86277"><![CDATA[
Hello  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>They are all working.<br><br>Ty :]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Tue Dec 16, 2008 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-15T07:47:06-04:00</updated>

		<published>2008-12-15T07:47:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86247#p86247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86247#p86247"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86247#p86247"><![CDATA[
now <strong class="text-strong">garfwen</strong> need to test them all ;p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Mon Dec 15, 2008 7:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2008-12-15T05:32:56-04:00</updated>

		<published>2008-12-15T05:32:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86246#p86246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86246#p86246"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86246#p86246"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - {*} hello:joinbind raw - {354} hello:rawproc hello:join {n u h c t} {    global hello    if {[string match -nocase *users.quakenet.org $h]} {        putserv "PRIVMSG $c :Hello $n ([lindex [split [lindex [split $h @] 1] .] 0])"    } elseif {![info exists hello([string tolower $n])]} {        set hello([string tolower $n]) "$c"        putserv "WHO $n %nat,97"    }}proc hello:raw {from raw arg} {    global hello    set t [lindex [split $arg] 1]    set n [lindex [split $arg] 2]    set a [lindex [split $arg] 3]    if {![info exists hello([string tolower $n])]} { return }    set c "$hello([string tolower $n])"    unset hello([string tolower $n])    if {$t == "97"} {        if {$a != "" &amp;&amp; $a != "0"} {            putserv "PRIVMSG $c :Hello $n ($a)"        } else {            putserv "PRIVMSG $c :Hello $n"        }    }}</code></pre></div>Untested..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Dec 15, 2008 5:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-12-15T00:46:28-04:00</updated>

		<published>2008-12-15T00:46:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86245#p86245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86245#p86245"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86245#p86245"><![CDATA[
In this case, adding another callback seems overkill to me, given the nature of the network.<div class="codebox"><p>Code: </p><pre><code>bind pub - hello proc:helloproc proc:hello {nick host hand chan text} { set auth "" regexp {[^[:space:]@]+@([^[:space:].]+)\.users.quakenet.org} $host match auth putquick "privmsg $chan :Hello $nick (#$auth)"} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Dec 15, 2008 12:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2008-12-14T19:44:18-04:00</updated>

		<published>2008-12-14T19:44:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86244#p86244</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86244#p86244"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86244#p86244"><![CDATA[
Its infact 5 lines of output, but your only processing a certain line from the whois reply. WHO is however one line of output.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Dec 14, 2008 7:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-14T16:55:08-04:00</updated>

		<published>2008-12-14T16:55:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86243#p86243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86243#p86243"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86243#p86243"><![CDATA[
Im using whois to check "account : " section. <br>It's just one line of output, can be easier? ;p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Sun Dec 14, 2008 4:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2008-12-14T16:24:23-04:00</updated>

		<published>2008-12-14T16:24:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86241#p86241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86241#p86241"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86241#p86241"><![CDATA[
Its better to use WHO with a special reply, raw 354 with %na arguments.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Dec 14, 2008 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-14T09:58:42-04:00</updated>

		<published>2008-12-14T09:58:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86236#p86236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86236#p86236"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86236#p86236"><![CDATA[
better to use WHOIS command than parse user host:<div class="codebox"><p>Code: </p><pre><code># Author: tomekk# e-mail:  tomekk/@/oswiecim/./eu/./org# home page: http://tomekk.oswiecim.eu.org/## Version 0.1## This file is Copyrighted under the GNU Public License.# http://www.gnu.org/copyleft/gpl.htmlset auth_chans {#chan1 #chan2}##################################################bind pub - hello hello_procbind raw - 330 whois_procproc hello_proc { nick uhost hand chan arg } {global user_irc_name user_irc_chan auth_chansif {[lsearch $auth_chans $chan] != -1} {set user_irc_name $nickset user_irc_chan $chanputserv "WHOIS $nick"}}proc whois_proc { from keyword arg } {global user_irc_name user_irc_chanset list_of_args [split $arg]set auth_name [lindex $list_of_args 2]if {($auth_name != "") &amp;&amp; ($keyword == 330)} {putquick "PRIVMSG $user_irc_chan :Hello $user_irc_name (\#$auth_name)"}}putlog "show-auth.tcl ver 0.1 by tomekk"</code></pre></div>try :&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Sun Dec 14, 2008 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2008-12-14T09:01:32-04:00</updated>

		<published>2008-12-14T09:01:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86235#p86235</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86235#p86235"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86235#p86235"><![CDATA[
Hello.<br><br>No, i just want the Auth-name:<br><br>"$auth"should be, in this case, "ZIMBORA"<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Sun Dec 14, 2008 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2008-12-14T08:58:29-04:00</updated>

		<published>2008-12-14T08:58:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86234#p86234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86234#p86234"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86234#p86234"><![CDATA[
try:<div class="codebox"><p>Code: </p><pre><code>putquick "privmsg $chan :Hello $nick ($nick!$host)"</code></pre></div>:&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Sun Dec 14, 2008 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2008-12-14T05:23:35-04:00</updated>

		<published>2008-12-14T05:23:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86232#p86232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86232#p86232"/>
		<title type="html"><![CDATA[Get #auth on Mask]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86232#p86232"><![CDATA[
Hello.<br>On quakenet, when you'r authed, you can see you'r auth on your mask:<br><br>GaRfWeN!<a href="mailto:GaRfwen@ZIMBORA.users.quakenet.org">GaRfwen@ZIMBORA.users.quakenet.org</a><br><br>("ZIMBORA" is the #auth)<br><div class="codebox"><p>Code: </p><pre><code>bind pub - hello proc:helloproc proc:hello {nick host hand chan text} {putquick "privmsg $chan :Hello $nick (#$auth)"}</code></pre></div>Now my question is how can i put the AUTH-NAME on the variable $auth ?<br><br>Ty,<br>GaRfWeN<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Sun Dec 14, 2008 5:23 am</p><hr />
]]></content>
	</entry>
	</feed>
