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

	<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>2008-05-19T00:33:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-19T00:33:59-04:00</updated>

		<published>2008-05-19T00:33:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82981#p82981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82981#p82981"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82981#p82981"><![CDATA[
The reason the correct code didn't work is because you didn't enter a valid entry (also when making this modifcation to the script, deleting the old .txt database, and rebuild all using the below method is required).<br>!addinvite nick!*@* - add by nick<br>!addinvite *!ident@* - add by ident<br>!addinvite *!*@hostna.me - add by hostname<br><br>Of course combinations of any of these methods is allowed as well.<div class="codebox"><p>Code: </p><pre><code>change:if {[string match -nocase "$host" $line]} { to this: if {[string match -nocase $line "$nick!$host"]} {</code></pre></div>bestest.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon May 19, 2008 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[4mirc]]></name></author>
		<updated>2008-05-18T22:45:56-04:00</updated>

		<published>2008-05-18T22:45:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82979#p82979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82979#p82979"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82979#p82979"><![CDATA[
hi speechles<br><br> i changed this <br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase "$host" $line]} { to this: if {[string match -nocase $line "$nick!$host"]} {</code></pre></div>but nothing happen but when i changed<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase "$host" $line]} { to this: if {[string match -nocase $line "$nick"]} {</code></pre></div> my bot working 100%<br><br> thx again <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=9924">4mirc</a> — Sun May 18, 2008 10:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-17T04:08:45-04:00</updated>

		<published>2008-05-17T04:08:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82952#p82952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82952#p82952"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82952#p82952"><![CDATA[
<blockquote class="uncited"><div>hi speechles <br><br> im looking for script like adding nicks in text <br><br> so when any nick connected the bot will read the nick <br><br> like a notify script <br><br>i did what u said and i added my nick nothing happen <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><br> <br> dunno whats the problem</div></blockquote>notify? how exactly is the eggdrop to realize the event? Is this person joining a channel in common with the eggdrop? If so, change the invite portion of this script to fit your need. This is not rocket science or nuclear chemistry. If you make a mistake, your bot will simply crash. This does not  end the world. When you revise a script, never tamper with the original working script. Make a copy, call it *-WIP.*, and add that to your bot when doing modifications. In this way, if for some reason something goes drastically wrong and you can't remember how to undo whats been done, it's as simple as going back to the last working version of the script.<br><br>Note: follow my advice in the last section where I mention code snippets. The post where I show how to add nick!*@* and such. This fix does indeed work, why wouldn't it? Trust in the string match, especially with it's -nocase. nIcK!<a href="mailto:wItH.a@fUnKy.L3EteD.uP.vHoSt">wItH.a@fUnKy.L3EteD.uP.vHoSt</a> using differing combinations of random cases, this not a problem to match against as long as you get the letters right, the nocase makes case hereby irrelevant... I can't see how this is a problem...<blockquote class="uncited"><div>&lt;speechles&gt; .tcl set question [string match "does!this@match" "does!*@*"  ]<br>&lt;sp33chy&gt; Tcl: 0<br>&lt;speechles&gt; .tcl set question [string match "does!*@*" "does!this@match" ]<br>&lt;sp33chy&gt; Tcl: 1<br>&lt;speechles&gt; .tcl set question [string match "*oe*!*s@*ch" "does!this@match" ]<br>&lt;sp33chy&gt; Tcl: 1</div></blockquote>I naturally assumed this worked either way, apparently I was wrong. Corrected the code in the fix above to work now, it will behave as intended. Try it and let me know if it doesn't.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>Note: the original coder of this script is using string match backwards as well, and using wildcards of any sort will result in 0 (no match) rather than 1 (match)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat May 17, 2008 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[4mirc]]></name></author>
		<updated>2008-05-17T04:03:44-04:00</updated>

		<published>2008-05-17T04:03:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82951#p82951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82951#p82951"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82951#p82951"><![CDATA[
hi speechles <br><br> im looking for script like adding nicks in text <br><br> so when any nick connected the bot will read the nick <br><br> like a notify script <br><br>i did what u said and i added my nick nothing happen <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><br> <br> dunno whats the problem<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9924">4mirc</a> — Sat May 17, 2008 4:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-17T04:31:07-04:00</updated>

		<published>2008-05-17T04:00:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82950#p82950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82950#p82950"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82950#p82950"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>change this:if {[string match -nocase "$host" $line]} {to this:if {[string match -nocase $line "$nick!$host"]} {</code></pre></div><span style="font-size:84%;line-height:116%">corrected code above, see note in post below.</span><br>This would solve everything. Makes this script able to allow any nick!ident@host combinations.<br>To add a nick, !addinvite nick!*@*<br>To add a nick with a unique ident, !addinvite nick!ident@*<br>To add a bare host with no nick or ident, !addinvite *!*@host.goes.here<br>And so and and so forth, doing it this way allows you flexibility to work around things..<br><br>@4mirc, I can help you sure. But for my help it requires you make some effort as well..<span style="color:red">Making a request for a script using red is not helping.</span>. It doesn't make your request any more urgent than the other requests made using normal text. Why you felt the need to enshroud your entire post into the angry color red goes without question....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat May 17, 2008 4:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[4mirc]]></name></author>
		<updated>2008-05-17T03:33:53-04:00</updated>

		<published>2008-05-17T03:33:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82949#p82949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82949#p82949"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82949#p82949"><![CDATA[
thx speechles for the reply<br>can u help me to make this script ?<br>i need it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br><a href="http://forum.egghelp.org/viewtopic.php?t=15748" class="postlink">http://forum.egghelp.org/viewtopic.php?t=15748</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9924">4mirc</a> — Sat May 17, 2008 3:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-17T02:54:39-04:00</updated>

		<published>2008-05-17T02:54:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82948#p82948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82948#p82948"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82948#p82948"><![CDATA[
<blockquote class="uncited"><div>I'm having a problem with users who use +x (hostname masking). Is there a way around that without having the user do anything? User privacy is a big concern, and I don't want to reveal their IP address if I don't have to.</div></blockquote>ident@users*thatnet.org - of course users*thatnet.org is merely an example.<br>This would be the only way to accomplish it (hopefully your privileged users have unique enough idents.. heh). Keep in mind you can use asterisks in the hostname using this script. It uses string match for field comparing which does accept wildcards (aka asterisks).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat May 17, 2008 2:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-17T04:15:02-04:00</updated>

		<published>2008-05-17T02:48:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82947#p82947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82947#p82947"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82947#p82947"><![CDATA[
<blockquote class="uncited"><div>hiiiiiiiiiiiiiiii<br><br><br>im looking for this script  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br> but can u make it for nicks not hosts ???????<br><br><br>thx alot alot</div></blockquote><div class="codebox"><p>Code: </p><pre><code>Use code snippet in my post below</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat May 17, 2008 2:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[4mirc]]></name></author>
		<updated>2008-05-16T23:42:51-04:00</updated>

		<published>2008-05-16T23:42:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82945#p82945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82945#p82945"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82945#p82945"><![CDATA[
hiiiiiiiiiiiiiiii<br><br><br>im looking for this script  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br> but can u make it for nicks not hosts ???????<br><br><br>thx alot alot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9924">4mirc</a> — Fri May 16, 2008 11:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TRB]]></name></author>
		<updated>2008-02-02T09:58:25-04:00</updated>

		<published>2008-02-02T09:58:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80588#p80588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80588#p80588"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80588#p80588"><![CDATA[
I'm having a problem with users who use +x (hostname masking). Is there a way around that without having the user do anything? User privacy is a big concern, and I don't want to reveal their IP address if I don't have to.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9677">TRB</a> — Sat Feb 02, 2008 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pavel_kbc]]></name></author>
		<updated>2006-12-29T16:43:09-04:00</updated>

		<published>2006-12-29T16:43:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69340#p69340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69340#p69340"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69340#p69340"><![CDATA[
its really good . but can you make it for multiple channel? please<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8548">pavel_kbc</a> — Fri Dec 29, 2006 4:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iNFERiON]]></name></author>
		<updated>2006-01-18T06:14:30-04:00</updated>

		<published>2006-01-18T06:14:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59515#p59515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59515#p59515"/>
		<title type="html"><![CDATA[auto-invite script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59515#p59515"><![CDATA[
Description pretty much says it all, enjoy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>#########################  auto-invite.tcl  #### v1.0   01/18/2006 #### Coded by iNFERiON ##########################     DESCRIPTION     ######################### This script will monitor a channel for joining people# and see if their hostname is in the by you specified file.# If it is, it will auto-invite that person to a +i channel of your choice.# This is easy if you have a public and a private channel like #mychan and #mychan.crew# A bot master (+m) can add hosts to the invitehosts.txt file by using !addinvite &lt;hostmask&gt;,# e.g. !addinvite ~me@my.ISP.here.net# For extra security, this command only works in the +i chan.## Enjoy :)######################### Config #### Hostlist file?set hostlist_file "invitehosts.txt"# Listen channel?set listen_chan "#changeme"# Invite channel?set invite_chan "#invitemehere"# Nick to notify about sent invites?set notify_nick "BotOwner"# Notice to send before invite?set invite_note "You are recognized as crew member, inviting you to the crew channel."### End of config ###### Do NOT edit below ###bind pub m !addinvite ai_addbind join - * ai_joinproc ai_join { nick host handle chan } {global hostlist_file listen_chan invite_chan notify_nick invite_noteif {$chan == $listen_chan} {set fname $hostlist_fileset fp [open $fname "r"]set data [read -nonewline $fp]close $fpset lines [split $data "\n"] foreach line $lines {    if {[string match -nocase "$host" $line]} {puthelp "NOTICE $notify_nick :Inviting $nick to $invite_chan"puthelp "NOTICE $nick :$invite_note"putserv "INVITE $nick :$invite_chan"}}}}proc ai_add { nick host handle chan text } {global hostlist_file invite_chanif {$chan == $invite_chan} {set newhost "$text"set fname $hostlist_fileset fp [open $fname "a"]puts $fp $newhostclose $fpputhelp "NOTICE $nick :Done."}}putlog "Auto-invite v1.0 by iNFERiON loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5656">iNFERiON</a> — Wed Jan 18, 2006 6:14 am</p><hr />
]]></content>
	</entry>
	</feed>
