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

	<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>2022-09-06T09:30:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[digitized]]></name></author>
		<updated>2022-09-06T09:30:37-04:00</updated>

		<published>2022-09-06T09:30:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111370#p111370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111370#p111370"/>
		<title type="html"><![CDATA[webchat ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111370#p111370"><![CDATA[
Hi, <br>Is it possible that the bot privat message +m and +n users automatically the result of the resolved ip when a users joins the channel, where the bot is in, with a webchat client?<br>Thank you!l<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12984">digitized</a> — Tue Sep 06, 2022 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-11-29T03:41:36-04:00</updated>

		<published>2021-11-29T03:41:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110559#p110559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110559#p110559"/>
		<title type="html"><![CDATA[webchat converter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110559#p110559"><![CDATA[
now it works CrazyCat<br><br>thank you  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Mon Nov 29, 2021 3:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-11-28T19:22:19-04:00</updated>

		<published>2021-11-28T19:22:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110557#p110557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110557#p110557"/>
		<title type="html"><![CDATA[webchat converter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110557#p110557"><![CDATA[
I'll check the trouble and give an answer soon.<br><br>You can try that:<div class="codebox"><p>Code: </p><pre><code>scan [lindex [split $thost @] 0] "%02x%02x%02x%02x" ip1 ip2 ip3 ip4if {[catch {putserv "PRIVMSG $nick :$text is $ip1.$ip2.$ip3.$ip4"}]} {   putserv "PRIVMSG $nick :$text doesn't seem to be webchat" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Nov 28, 2021 7:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-11-28T13:23:14-04:00</updated>

		<published>2021-11-28T13:23:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110555#p110555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110555#p110555"/>
		<title type="html"><![CDATA[webchat converter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110555#p110555"><![CDATA[
yes I know,<br><br>but the problem is in this IF condition:<div class="codebox"><p>Code: </p><pre><code>if {[catch {[scan [lindex [split $thost @] 0] "%02x%02x%02x%02x" ip1 ip2 ip3 ip4]}]}</code></pre></div>I always get the first statement:<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $nick :$text doesn't seem to be webchat"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sun Nov 28, 2021 1:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-11-28T13:02:16-04:00</updated>

		<published>2021-11-28T13:02:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110554#p110554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110554#p110554"/>
		<title type="html"><![CDATA[webchat converter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110554#p110554"><![CDATA[
The command is done to be used on the channel where the target is (I did it quickly).<br>Just replace:<div class="codebox"><p>Code: </p><pre><code>if {![onchan $text $chan]} { </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>if {![onchan $text]} { </code></pre></div>and the eggdrop will search for the user in all chans where the eggdrop is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Nov 28, 2021 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-11-28T12:57:18-04:00</updated>

		<published>2021-11-28T12:57:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110553#p110553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110553#p110553"/>
		<title type="html"><![CDATA[webchat converter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110553#p110553"><![CDATA[
very thanks CrazyCat<br><br>I just try your code but I always get: "nicktest doesn't seem to be webchat"<br><br>maybe a problem in lindex string?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sun Nov 28, 2021 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-11-28T11:20:38-04:00</updated>

		<published>2021-11-28T11:20:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110552#p110552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110552#p110552"/>
		<title type="html"><![CDATA[webchat converter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110552#p110552"><![CDATA[
Quite simple :<div class="codebox"><p>Code: </p><pre><code>bind pub - hex_to_dec h2dproc h2d {nick uhost handle chan text} {   if {$text == ""} {      putserv "PRIVMSG $nick :You forget the target"      return 0   }   if {![onchan $text $chan]} {      putserv "PRIVMSG $nick :I can't see $text on $chan"      return 0   }   set thost [getchanhost $text $chan]   if {[catch {[scan [lindex [split $thost @] 0] "%02x%02x%02x%02x" ip1 ip2 ip3 ip4]}]} {      putserv "PRIVMSG $nick :$text doesn't seem to be webchat"   } else {      putserv "PRIVMSG $nick :$text is $ip1.$ip2.$ip3.$ip4"   }}</code></pre></div>Not tested, but the scan works and automaticaly converts into dec.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Nov 28, 2021 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[geek]]></name></author>
		<updated>2021-11-28T11:51:16-04:00</updated>

		<published>2021-11-28T06:02:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110551#p110551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110551#p110551"/>
		<title type="html"><![CDATA[webchat converter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110551#p110551"><![CDATA[
hi,<br>in my network you can connect via webchat too<br><br>example:<br>  testone!<a href="mailto:6275b11f@webchat.net">6275b11f@webchat.net</a> has joined<br><br>user ident 6275b11f is a hexadecimal notation:<div class="codebox"><p>Code: </p><pre><code>0x62=98, 0x75=117, 0xB1=177, 0x1F=31</code></pre></div>so real ip (decimal notation) is 98.117.177.31<br><br><br>is it possible to write a tcl that does this conversion?<br><br>like:<div class="codebox"><p>Code: </p><pre><code>   =&gt; testtwo!xxx@abcdef.com has joined &lt;me&gt; !hex_to_dec testtwo&lt;bot&gt; testtwo is not using a webchat   =&gt; testone!6275b11f@webchat.net has joined &lt;me&gt; !hex_to_dec testone&lt;bot&gt; testone real ip is:  0x62=98, 0x75=117, 0xB1=177, 0x1F=31  --&gt; 98.117.177.31</code></pre></div>I need a variable where I set webchat hostnames and bot does the conversion only if the user is connected from those:<br>webchat.net and chatweb.com ---&gt; yes, convert<br>all other domains ---&gt; no conversion<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10286">geek</a> — Sun Nov 28, 2021 6:02 am</p><hr />
]]></content>
	</entry>
	</feed>
