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

	<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>2015-02-22T15:36:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-02-22T15:36:01-04:00</updated>

		<published>2015-02-22T15:36:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103531#p103531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103531#p103531"/>
		<title type="html"><![CDATA[Re: Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103531#p103531"><![CDATA[
Start by doing:<br>.dump whois some_nick<br>from the partyline.   That will make the bot send a whois to the irc server for that nick.<br><br>If you cannot see the response in the partyline, do:<br>.console +r<br>to enable viewing raw incoming to the bot.  <br>Do:<br>.console<br>to view the list of current flags.  If r (raw) is still not listed, then it is not enabled in eggdrop.conf.    Edit eggdrop.conf to enable it, rehash, and do:<br>.console +r again.<br><br>Do:<br>.dump  whois some_nick<br>again, and see the return via the partyline.<br>Find a line that looks like this:<br>&lt;chanbotviii&gt; [14:26:38] [@] irc.us.ca.mibbit.net 311 ChanbotVIII Rog Rog mib-7B80EB3B.clients.your-server.de * :<br><br>See that "311" in that line?<br>That's a raw numeric.   You can bind to that in your script.<br><br>Go here:<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and text search for:<br>bind raw<br>and read about how to use that bind. <br>With it, you  can capture that returned line in a variable.<br>Now you've got the nick, ident, and hostmask<br><br>You can pick it apart with:<br>split<br>and with:<br>lindex<br><br>( <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm</a> )<br><br>See: <a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>again, and text search for:<br>maskhost<br>and read about how to use that command, to get a variety of different returns.   I think you are looking for type number 2.<br><br>With these things, I think you can cobble together something, such that if you do something like:<br>!command some_nick<br>the bot will send a whois on some_nick, (no matter if some_nick is in a channel with the bot or not) and if some_nick is on the server, bot will get the hostmask in the format that you desire.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Feb 22, 2015 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-02-22T15:20:27-04:00</updated>

		<published>2015-02-22T15:20:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103530#p103530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103530#p103530"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103530#p103530"><![CDATA[
No, that is not expected.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>But without some response, I would not know that you could even write ANY script at all.<br><br>Apparently, you can.  <br>That is good.<br>That affects how I will answer, this time.<br><br>Let me re-read your original post here, and I'll be back with some ideas for you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Feb 22, 2015 3:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jack1]]></name></author>
		<updated>2015-02-22T14:14:08-04:00</updated>

		<published>2015-02-22T14:14:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103527#p103527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103527#p103527"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103527#p103527"><![CDATA[
Hi<br><br>What about it?<br><br>I read the links and wrote the script.<br><br>I am expected to paste the script that I wrote (I didn't realise ...)?<br><br>Cheers,<br>Jack<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12490">Jack1</a> — Sun Feb 22, 2015 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-02-22T11:07:27-04:00</updated>

		<published>2015-02-22T11:07:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103525#p103525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103525#p103525"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103525#p103525"><![CDATA[
You have not yet responded to the reply you got on your other request.<br><br>How did that work out?  <br>Did you succeed?<br>(best to respond there in that thread)<br><br>After that is finished, then perhaps we can do something with this request.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Feb 22, 2015 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jack1]]></name></author>
		<updated>2015-02-21T15:57:51-04:00</updated>

		<published>2015-02-21T15:57:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103514#p103514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103514#p103514"/>
		<title type="html"><![CDATA[Script Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103514#p103514"><![CDATA[
Hi<br><br>I need to get the user mask of a given user in *!*@IP form.<br><br>The user is connected to the IRC network, but doesn't necessarily share a channel with a bot on the botnet.<br><br>Is it possible?<br><br>Cheers, <br>Jack<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12490">Jack1</a> — Sat Feb 21, 2015 3:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
