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

	<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>2007-05-20T15:46:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-20T15:46:08-04:00</updated>

		<published>2007-05-20T15:46:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72870#p72870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72870#p72870"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72870#p72870"><![CDATA[
thank you again nml375, i'll give it a try<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sun May 20, 2007 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-20T14:44:10-04:00</updated>

		<published>2007-05-20T14:44:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72869#p72869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72869#p72869"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72869#p72869"><![CDATA[
You could always remove the Z from the binding, and add something like this in the beginning of your proc:<div class="codebox"><p>Code: </p><pre><code> if {![matchattr $hand +Z]} {  putlog "Inviter: Failed invite by $nick!$host ($hand), no permissions"  return 0 }</code></pre></div>Should dump a logmessage if the user does not have permissions, including the handle (s)he was identified as...<br><br><em class="text-italics">edit: And yes, your code is otherwize proper...  and, just to make sure, by saying remove Z, you should replace it with a -</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun May 20, 2007 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-20T14:39:46-04:00</updated>

		<published>2007-05-20T14:39:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72868#p72868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72868#p72868"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72868#p72868"><![CDATA[
thank you nml375;<br><br>I've created invite handle and added 4,5 ip/hosts to it to test it. they all are added like *!*ident@ip and their idents are different.<br><br>When channel is invite only then they cann't get in so i cann't use .channel command to see.. so these codes are correct?<br><div class="codebox"><p>Code: </p><pre><code>bind msg Z inv msg:inviteproc msg:invite {nick host hand text} {if {![onchan $nick #name]} {   putserv "INVITE $nick #name" } else {  puthelp "NOTICE $nick :you are already in" }}</code></pre></div>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sun May 20, 2007 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-05-20T02:37:49-04:00</updated>

		<published>2007-05-20T02:37:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72859#p72859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72859#p72859"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72859#p72859"><![CDATA[
My guess would be that hostmasks for one or several users are not properly set up, causing users not to be recognized, or recognized as someone else...<br><br>In this case, the solution (obviously) would be to correct hostmasks of those users. The .channel dcc-command might be useful to actually see whom your eggdrop identifies the user as<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun May 20, 2007 2:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-20T00:33:41-04:00</updated>

		<published>2007-05-20T00:33:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72857#p72857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72857#p72857"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72857#p72857"><![CDATA[
now they don't work at all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sun May 20, 2007 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-05-20T00:20:38-04:00</updated>

		<published>2007-05-20T00:20:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72854#p72854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72854#p72854"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72854#p72854"><![CDATA[
maybe if you include a <strong class="text-strong">matchattr</strong> check inside your procedure it would be better<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sun May 20, 2007 12:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-19T18:08:22-04:00</updated>

		<published>2007-05-19T18:08:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72844#p72844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72844#p72844"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72844#p72844"><![CDATA[
Thank you for your help Sir_Fz, it worked great.<br><br>I have a one last question please. The following codes works sometime and sometime they don't. Am i missing something?<br><br>so user with Z flag types /msg bot inv<br><div class="codebox"><p>Code: </p><pre><code>bind msg Z inv msg:invite proc msg:invite {nick host hand text} { if {![onchan $nick #name]} {    putserv "INVITE $nick #name"  } else {   puthelp "NOTICE $nick :you are already in"  } }</code></pre></div>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sat May 19, 2007 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-15T23:01:53-04:00</updated>

		<published>2007-05-15T23:01:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72788#p72788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72788#p72788"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72788#p72788"><![CDATA[
Thanks Sir,Fz i'll try it and then i'll let ya know<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Tue May 15, 2007 11:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-14T21:14:37-04:00</updated>

		<published>2007-05-14T21:14:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72770#p72770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72770#p72770"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72770#p72770"><![CDATA[
Then you should do something like this:<div class="codebox"><p>Code: </p><pre><code>set found 0set host [lindex [split $uhost @] 1]foreach pattern $lamer {    if {[string match $pattern $host]} {  set found 1  break } }if {$found} { # Do your stuff here..}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon May 14, 2007 9:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-14T21:03:41-04:00</updated>

		<published>2007-05-14T21:03:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72768#p72768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72768#p72768"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72768#p72768"><![CDATA[
Well i want to check for dns only if person is in the list, if person is not in the list then i want to ignore it. <div class="codebox"><p>Code: </p><pre><code>set lamer { *aol.com*  24.*  81.*  217.*  68.*  211.*}</code></pre></div><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Mon May 14, 2007 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-14T04:53:42-04:00</updated>

		<published>2007-05-14T04:53:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72759#p72759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72759#p72759"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72759#p72759"><![CDATA[
What exactly is your change supposed to do? The condition always succeeds since not all the elements in the list are going to match the joining host.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon May 14, 2007 4:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-14T00:00:00-04:00</updated>

		<published>2007-05-14T00:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72757#p72757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72757#p72757"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72757#p72757"><![CDATA[
Thanks again Sir_fz.<br><br>Now i'm trying to use these codes in MC_8's dns bans scripts because i like to   check only lamers ip/hosts for dns so i'm just pasting his onjoin procedure which i have modified it and it doesn't work. Bold ones are my changes.<br><div class="codebox"><p>Code: </p><pre><code>[b]set lamer { *aol.com*  24.*  81.*  217.*  68.*}[/b] bind join - * mc:dnsb:joinproc mc:dnsb:join {nick uhost handle channel} {  return [mc:dnsb:errchk mc:dnsb:join_ $nick $uhost $handle $channel]}proc mc:dnsb:join_ {nick uhost handle channel} { global coke  if {![channel get $channel mc.dns_bans] || [isbotnick $nick] || [matchban $nick!$uhost $channel] || [mc:dnsb:matchchanban $nick!$uhost $channel]} {return 0}     [b]set host [lindex [split $uhost @] 1]  foreach pattern $lamer {        if {![string match $pattern $host]} { return }    } [/b]   set cache(exempt:flags) [channel get $channel mc.dns_bans.exempt.flags]  if {($cache(exempt:flags) != "") &amp;&amp;  [matchattr $handle $cache(exempt:flags) $channel]} {return 0}   regexp -- (.*)@(.*) $uhost dummy ident host  if {$::numversion &gt;= "1061600"} {    dnslookup $host mc:dnsb:dnsreturn $host $nick $ident $handle $channel  } else {    dnslookup [list $host] mc:dnsb:dnsreturn [list $host $nick $ident $handle $channel]  }} </code></pre></div>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Mon May 14, 2007 12:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-13T20:03:47-04:00</updated>

		<published>2007-05-13T20:03:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72755#p72755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72755#p72755"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72755#p72755"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set ips { 24.* 222.*}proc check {nick uhost hand chan} { global ips set host [lindex [split $uhost @] 1] foreach pattern $ips {  if {[string match $pattern $host]} {   puts "$pattern matched $host"  } { puts "$pattern DOES NOT match $host" } }}</code></pre></div><blockquote class="uncited"><div>% check nick ident@24.91.187.99 * #chan<br>24.* <strong class="text-strong">matched</strong> 24.91.187.99<br>222.* DOES NOT match 24.91.187.99<br>%</div></blockquote>Apparently it does work <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=3085">Sir_Fz</a> — Sun May 13, 2007 8:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ap]]></name></author>
		<updated>2007-05-13T19:56:20-04:00</updated>

		<published>2007-05-13T19:56:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72754#p72754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72754#p72754"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72754#p72754"><![CDATA[
ok i had the following but it seems it didn't work<br><div class="codebox"><p>Code: </p><pre><code>set ips {24.*            222.*}bind join - * checkproc check {nick uhost hand chan} { global  ips set host [lindex [split $uhost @] 1] foreach pattern $ips { if {[string match $pattern $host]} {     putlog "matched" } else { putlog "no macth" }}</code></pre></div> and person joined nick!ident@24.91.187.99 and it didn't match, i don't know why. I thought 24.* is in my list so this should of matched.<br><br>but this shouldn't matched nick!ident@72.20.49.24 because 24 is at the end, i want it to match only if it starts with 24.8 or 222.*<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7851">ap</a> — Sun May 13, 2007 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-13T19:42:29-04:00</updated>

		<published>2007-05-13T19:42:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72753#p72753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72753#p72753"/>
		<title type="html"><![CDATA[on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72753#p72753"><![CDATA[
Your code already does that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun May 13, 2007 7:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
