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

	<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>2012-02-15T14:59:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[zammer]]></name></author>
		<updated>2012-02-15T14:59:47-04:00</updated>

		<published>2012-02-15T14:59:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98803#p98803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98803#p98803"/>
		<title type="html"><![CDATA[Freenode and WHOIS output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98803#p98803"><![CDATA[
Hey,<br><br>Thanks for the hint.<br>I was looking at 330 output but I didn't know that the 3rd position is acc name.<br><br>Thanks<br>Best Regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11917">zammer</a> — Wed Feb 15, 2012 2:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-02-14T13:51:56-04:00</updated>

		<published>2012-02-14T13:51:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98793#p98793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98793#p98793"/>
		<title type="html"><![CDATA[Re: Freenode and WHOIS output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98793#p98793"><![CDATA[
<blockquote class="uncited"><div>In irssi I have something like this (/whois zammer):<br>....<br>12:14:11 [freenode] -!-  account  : zammer<br>...</div></blockquote>Something to be aware of:<br>The way that line looks when you see it in irssi, is different from the way it looks when it appears in bot.<br>This is what it looks like to bot:<div class="codebox"><p>Code: </p><pre><code>&lt;botnick&gt; [12:36:23] [@] barjavel.freenode.net 330 botnick jack3 jack3 :is logged in as</code></pre></div><blockquote class="uncited"><div>Could someone tell me please how can read into script:<br><strong class="text-strong">16:14:11 [freenode] -!-  account  : zammer</strong><br><br>I want to check account name and do some things if it match.<br>I have no idea how to do this with Freenode and the custom IRCd.<br>...</div></blockquote>Here is some stuff to play with.  I hope it illustrates what is going on, and how to do it.  You can uncomment lines as you wish, to see.<br><br>The way it is below, it sets a variable, and then sends you a line of text.<br>I assume that once you get the value into the variable, then that is what you wanted here... from there, you can do your own matching, etc.<br><div class="codebox"><p>Code: </p><pre><code># Feb 14, 2012# experimenting with obtaining info from a /whois on freenode# http://forum.egghelp.org/viewtopic.php?t=18839# set your nick here. Bot will be sending a query (pm) to itset mynick "zammer"# reference:# http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html#binda# and scroll down to      bind rawbind raw - 330 fn_whoisproc fn_whois {from key text} {global mynick        #putserv "privmsg $mynick :from is   $from"        #putserv "privmsg $mynick :key is    $key"        #putserv "privmsg $mynick :text is   $text"        #putserv "privmsg $mynick :first element is   [lindex [split $text] 0]"        #putserv "privmsg $mynick :second element is  [lindex [split $text] 1]"        #putserv "privmsg $mynick :third element is   [lindex [split $text] 2]"        #putserv "privmsg $mynick :the rest is        [lrange [split $text] 3 end]"        set accountname [lindex [split $text] 2]        putserv "privmsg $mynick :account name is:  $accountname "}</code></pre></div>With a quick test, on Freenode,  the above worked for me.   <br><br>I hope it helps to answer your question.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Feb 14, 2012 1:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Johannes13]]></name></author>
		<updated>2012-02-14T11:48:56-04:00</updated>

		<published>2012-02-14T11:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98791#p98791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98791#p98791"/>
		<title type="html"><![CDATA[Freenode and WHOIS output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98791#p98791"><![CDATA[
bind raw 330<br><br>:holmes.freenode.net 330 Johannes13 Johannes13 Johannes13 :is logged in as<br><br>ok, 1st nick is your nick (botnick)<br>2nd nick is the nick of the whois target<br>3rd nick is the accountname.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11381">Johannes13</a> — Tue Feb 14, 2012 11:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zammer]]></name></author>
		<updated>2012-02-14T11:37:17-04:00</updated>

		<published>2012-02-14T11:37:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98790#p98790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98790#p98790"/>
		<title type="html"><![CDATA[Freenode and WHOIS output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98790#p98790"><![CDATA[
Hey,<br><br>In irssi I have something like this (/whois zammer):<blockquote class="uncited"><div>16:14:11 [freenode] -!- zammer [<a href="mailto:zammer@somewhere.com">zammer@somewhere.com</a>]<br>12:14:11 [freenode] -!-  ircname  : zammer<br>12:14:11 [freenode] -!-  channels : #chan1 #chan2<br>12:14:11 [freenode] -!-  server   : leguin.freenode.net [Ume?, SE, EU]<br>12:14:11 [freenode] -!-  hostname : somewhere.com 72.57.251.23 <br>12:14:11 [freenode] -!-  idle     : 0 days 0 hours 0 mins 4 secs [signon: Tue Feb 11 15:34:09 2012]<br>12:14:11 [freenode] -!-  account  : zammer<br>12:14:11 [freenode] -!- End of WHOIS</div></blockquote>Could someone tell me please how can read into script:<br><strong class="text-strong">16:14:11 [freenode] -!-  account  : zammer</strong><br><br>I want to check account name and do some things if it match.<br>I have no idea how to do this with Freenode and the custom IRCd.<br><br>Any hint?<br><br>Thanks!<br>Best regards.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11917">zammer</a> — Tue Feb 14, 2012 11:37 am</p><hr />
]]></content>
	</entry>
	</feed>
