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

	<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>2006-07-25T19:58:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-07-25T19:58:06-04:00</updated>

		<published>2006-07-25T19:58:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64871#p64871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64871#p64871"/>
		<title type="html"><![CDATA[handling raw irc output data..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64871#p64871"><![CDATA[
<strong class="text-strong">IRCNick</strong> supplied you with an answer?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jul 25, 2006 7:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-07-25T19:31:13-04:00</updated>

		<published>2006-07-25T19:31:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64870#p64870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64870#p64870"/>
		<title type="html"><![CDATA[handling raw irc output data..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64870#p64870"><![CDATA[
still no replies?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Tue Jul 25, 2006 7:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-07-14T17:51:15-04:00</updated>

		<published>2006-07-14T17:51:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64652#p64652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64652#p64652"/>
		<title type="html"><![CDATA[handling raw irc output data..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64652#p64652"><![CDATA[
anyone can help me please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri Jul 14, 2006 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[IRCNick]]></name></author>
		<updated>2006-07-12T08:34:10-04:00</updated>

		<published>2006-07-12T08:34:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64604#p64604</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64604#p64604"/>
		<title type="html"><![CDATA[handling raw irc output data..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64604#p64604"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc raw:rev {from key arg} {  set nick [lindex [split $arg] 1]  set ident [lindex [split $arg] 2]  set hostmask [lindex [split $arg] 3]    if {[info exist ::blah(target)]} {      if {[valididx $::blah([string tolower $nick])]} {       putidx $::blah([string tolower $nick]) "here you go: $nick!$ident@$hostmask target: $nick"     }   } }</code></pre></div></div></blockquote><blockquote class="uncited"><div>311   RPL_WHOISUSER   RFC1459   &lt;nick&gt; &lt;user&gt; &lt;host&gt; * :&lt;real name&gt;</div></blockquote>1.The $arg is already list splited by space<br>2. $nick should be the first argument(arg 0)  [lindex $arg 0]<br>Your second argument should be the user [lindex $arg 1]<br>and the third the full host(<a href="mailto:ident@some.host.tld">ident@some.host.tld</a> im not sure but I think so <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> ) of the user [lindex $arg 2] and so on<br>In this case, if you want to have only the host or the ip you should split the third arg <br>set host [lindex [split [lindex $arg 2] @] 1]<br><br>I hope I helped you a liittle <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=6849">IRCNick</a> — Wed Jul 12, 2006 8:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-07-12T01:04:49-04:00</updated>

		<published>2006-07-12T01:04:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64597#p64597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64597#p64597"/>
		<title type="html"><![CDATA[handling raw irc output data..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64597#p64597"><![CDATA[
Ok thats my another try though its working but it has few logical issues as far as i think first one is, i set target as <strong class="text-strong">set target [lindex [split $arg] 0]]</strong> and then <strong class="text-strong">set  ::blah(target) $target</strong>, i did to check if info exsist for target <strong class="text-strong">[info exist ::blah(target)]</strong>, but thats wrong casue when .infonick honeybee is done it will exist so it will always be positive right? anyway here is the code:<div class="codebox"><p>Code: </p><pre><code>bind dcc o infonick dcc:infonickproc dcc:infonick {hand idx arg} {  if {[isbotnick [set target [lindex [split $arg] 0]]]} {    putidx $idx "boo! you want to whois me?"     return   }  set  ::blah(target) $target  set ::blah([string tolower $target]) $idx  bind raw - 311 raw:rev    putserv "WHOIS $target"}proc raw:rev {from key arg} {  set nick [lindex [split $arg] 1]  set ident [lindex [split $arg] 2]  set hostmask [lindex [split $arg] 3]    if {[info exist ::blah(target)]} {      if {[valididx $::blah([string tolower $nick])]} {       putidx $::blah([string tolower $nick]) "here you go: $nick!$ident@$hostmask target: $nick"     }   } }</code></pre></div>and another idea i got was its better to use something like keywords or something instead of having all that as seperate proc we can use keyword for check but i cant implment it thats what i mean. All help from you guys are appreciated thanks.<br><div class="codebox"><p>Code: </p><pre><code>proc raw:rev {from key arg} {switch -- $key {    "001" {blah    }    "005" {blah      }    }    "311" {set nick [lindex [split $arg] 1]set ident [lindex [split $arg] 2]set hostmask [lindex [split $arg] 3]    }    "401" }      idx $idx "no such nick"      now whowas nick      putserv "whowas $target"    }    "318" {      end of the whois    }      "314" {      infos from whowas    }    "369" {      end of whowas    }    "406" {      no such nick    }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Wed Jul 12, 2006 1:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-07-09T12:12:38-04:00</updated>

		<published>2006-07-09T12:12:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64562#p64562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64562#p64562"/>
		<title type="html"><![CDATA[handling raw irc output data..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64562#p64562"><![CDATA[
I'm trying to make two major procs to get the irc raw output, whois info and whowas info so i can access these proc from another proc and get the data, i need help as i m new in handling irc raw output thanks.<div class="codebox"><p>Code: </p><pre><code>proc raw:rev:311 {f k t} {   set nick [lindex [split $t] 1]   set ident [lindex [split $t] 2]   set hostmask [lindex [split $t] 3]   set ::raw:whois:data($nick) $nick   set ::raw:whois:data($ident) $ident   set ::raw:whois:data($hostmask) $hostmask   unbind raw - 311 raw:rev311}proc raw:nonick401  {f k t} {  global myidx set set target $::whoistarget   putidx $myidx "$::whoistarget whois info is not avaible, checking whowas"# now we will try /WHOWAS so see if the nick quit, server keep those info for few time.   putserv "WHOWAS $::whoistarget"   bind raw 314 raw:rev:314   unbind raw 401 raw:nonick }proc raw:rev:314 {f k t} {   set nick [lindex [split $t] 1]   set ident [lindex [split $t] 2]   set hostmask [lindex [split $t] 3]   set ::raw:whowas:data($nick) $nick   set ::raw:whowas:data($ident) $ident   set ::raw:whowas:data($hostmask) $hostmask   bind raw - 406 raw:nonick406   unbind raw - 314 raw:rev314}proc raw:nonick406  {f k t} {   global myidx  set target $::whoistarget#whois was not found tryin whowas    putidx $myidx "can't see $::whoistarget on network"    putserv "WHOWAS $::whoistarget"  bind raw 314 raw:rev:314  unbind raw 401 raw:nonick }bind dcc o infonick dcc:infonickproc dcc:infonick {hand idx arg} { global myidx set myidx $idx set target [lindex [split $arg] 1] set ::whoistarget $target if {$arg == ""} {   putidx $idx "Usage: .infonick &lt;Nick&gt;" } if {$arg != ""} {   putserv "WHOIS $target"   bind raw - 311 raw:rev311   bind raw - 401 raw:nonick401 } if {[info exist ::raw:whois:data($nick)]} {   putidx $myidx "$arg is: $::raw:whois:data($nick)!$::raw:whois:data($ident)@$::raw:whois:data($ident)" } if {[info exist ::raw:whowas:data($nick)]} {   putidx $myidx "$arg is: $::raw:whowas:data($nick)!$::raw:whowas:data($ident)@$::raw:whowas:data($hostmask)" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Sun Jul 09, 2006 12:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
