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

	<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>2004-10-29T10:47:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-29T10:47:50-04:00</updated>

		<published>2004-10-29T10:47:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42383#p42383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42383#p42383"/>
		<title type="html"><![CDATA[getting user's host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42383#p42383"><![CDATA[
<blockquote class="uncited"><div>you know how to use regsub and regexp</div></blockquote>No, he doesn't.<blockquote class="uncited"><div>[regexp (.net) $msg] || [regexp (.com) $msg]</div></blockquote> I doubt they do what he expects. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>And the ctrl:filter thing is not perfect and probably borrowed from ppslim<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 29, 2004 10:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-29T10:41:10-04:00</updated>

		<published>2004-10-29T10:41:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42382#p42382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42382#p42382"/>
		<title type="html"><![CDATA[getting user's host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42382#p42382"><![CDATA[
Well yeah, you can use string match here, since you are doing basic matching with regexp and string match can do it faster.<br><br>And you don't need the ctrl:filter to filter out control codes anymore, because if you are using eggdrop1.6.17 it has a stripcodes function. See the "stripcodes" function in the tcl-commands.doc file.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Oct 29, 2004 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-10-29T10:30:32-04:00</updated>

		<published>2004-10-29T10:30:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42379#p42379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42379#p42379"/>
		<title type="html"><![CDATA[getting user's host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42379#p42379"><![CDATA[
you know how to use regsub and regexp but you dont know about getchanhost?<br><br>/me blinks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Oct 29, 2004 10:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-29T06:21:14-04:00</updated>

		<published>2004-10-29T06:21:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42366#p42366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42366#p42366"/>
		<title type="html"><![CDATA[getting user's host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42366#p42366"><![CDATA[
why don't u just use getchanhost..<br><blockquote class="uncited"><div>getchanhost &lt;nickname&gt; [channel]<br><br>    Returns: user@host of the specified nickname (the nickname is not included in the returned host). If a channel is not specified, bot will check all of its channels. If the nickname is not on the channel(s), "" is returned.<br><br>    Module: irc</div></blockquote><br>hand2nick = works only when its a known user..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Oct 29, 2004 6:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[entrapmen]]></name></author>
		<updated>2004-10-29T02:40:53-04:00</updated>

		<published>2004-10-29T02:40:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42365#p42365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42365#p42365"/>
		<title type="html"><![CDATA[getting user's host]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42365#p42365"><![CDATA[
hi i m writing a script for a kind of spammer which spam's by using away messages. there is a bot on my channel which messages all users. i make something like that:<div class="codebox"><p>Code: </p><pre><code>set kanal "#achan"proc ctrl:filter {str} {  regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026|\006|\007} $str "" str  return $str}bind RAW * 301 away:gorproc away:gor { from key msg } {global kanalset msg [ctrl:filter $msg]if {[regexp (www) $msg] || [regexp (.net) $msg] || [regexp (.com) $msg] || [regexp (http://) $msg]} {putlog "RAW: $from | $key | $msg "}}</code></pre></div>putlog "RAW: $from | $key | $msg" gives out something like that<br>RAW: soho-r.ix.us.dal.net | 301 | helebe aquil :www. <br>helebe is bots name. aquil is the spammer. www. is away message.<br>i want to get aquil's host name with in that script. and then ban it.<br>im not pro on tcl   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><br>i think i m gonna use hand2nick but how and with which commands?<br><br>if someone show me the way i ll be glad.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3463">entrapmen</a> — Fri Oct 29, 2004 2:40 am</p><hr />
]]></content>
	</entry>
	</feed>
