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

	<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>2005-02-02T11:39:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-02T11:39:14-04:00</updated>

		<published>2005-02-02T11:39:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46137#p46137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46137#p46137"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46137#p46137"><![CDATA[
i dont want to discuss with you about loops. I really don't want to critizice your enthusiasm to code for other people ^-^.<br>if you check the raw log of your bot, you should see it isnt working at all, because sending bans, that are already there, will not be seen unless you check raw log <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">. I <strong class="text-strong">may</strong> be wrong, but I dont think so, so plz consider I might really be right <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Feb 02, 2005 11:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-02-02T10:58:31-04:00</updated>

		<published>2005-02-02T10:58:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46133#p46133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46133#p46133"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46133#p46133"><![CDATA[
I use a similar code:<div class="codebox"><p>Code: </p><pre><code>foreach chanban [chanbans $chan] { if {![string match -nocase "[lindex [split $chanban] 0]" $ban]} {putquick "MODE $chan +b $ban" }}</code></pre></div>and it works just fine.<br><br>Besides, I find setting some variable to 1 or sending the invite directly the same. Since it's finding the match and not setting the variable to 0, same thing if it doesn't find the match and sends the invitation.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Feb 02, 2005 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-02T10:18:12-04:00</updated>

		<published>2005-02-02T10:18:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46131#p46131</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46131#p46131"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46131#p46131"><![CDATA[
<blockquote class="uncited"><div>Lots of thanks De KuS! Always among the first to answer <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"></div></blockquote>np, was just avaible ^^<br><blockquote class="uncited"><div>Interresting, but I still don't understand why my code didn't work ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"></div></blockquote>very easy to explain. just try to manually debug your code.<br>lets say [chanbans] returns<br>*!1@host X 10<br>*!2@host X 11<br>soo, foreach will be called 2 times, because we have 2 list lines.<br>first time it will contain *!1@host, since our bad guy is dog!1@host, so if is false and we proced the next stept... oh right second time no match for the host, meaning we will send the invition <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><br>i dont know if split is really needed in this case, but better be safe. 0 is the right index. check TCL-COMMAND for the return of chanbans.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Feb 02, 2005 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-02T08:47:48-04:00</updated>

		<published>2005-02-02T08:47:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46124#p46124</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46124#p46124"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46124#p46124"><![CDATA[
Is this the correct list index number even?<br><br>Try replacing:<br>[lindex [split $ban] 0]<br><br>with:<br>[lindex $ban 0]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Feb 02, 2005 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-02-02T08:37:28-04:00</updated>

		<published>2005-02-02T08:37:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46123#p46123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46123#p46123"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46123#p46123"><![CDATA[
<blockquote class="uncited"><div><strong class="text-strong">Edit</strong><br>i think i found the logical error!<br><br>try this<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - *invit* invitemeproc inviteme {nick uhost hand chan } {set goodguy 1foreach ban [chanbans #aiud] {if {[string match -nocase "[lindex [split $ban] 0]" "$nick!$uhost"]} {set goodguy 0}}if { $goodguy } {putserv "INVITE $nick #aiud"return 1}}</code></pre></div></div></blockquote>Interresting, but I still don't understand why my code didn't work ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Feb 02, 2005 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[anophelus]]></name></author>
		<updated>2005-02-02T08:23:29-04:00</updated>

		<published>2005-02-02T08:23:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46122#p46122</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46122#p46122"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46122#p46122"><![CDATA[
Lots of thanks De KuS! Always among the first to answer <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br>&lt;aiud&gt; [14:11] invite.tcl by Sir_Fz &amp; De Kus loaded successfully.<br><br>Now when the address is banned I get no answer from egg. When no ban -&gt; quick invitation! So is working!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>Best regards!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5956">anophelus</a> — Wed Feb 02, 2005 8:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-02T06:51:26-04:00</updated>

		<published>2005-02-02T06:51:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46117#p46117</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46117#p46117"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46117#p46117"><![CDATA[
<strong class="text-strong">Edit</strong><br>i think i found the logical error!<br><br>try this<br><div class="codebox"><p>Code: </p><pre><code>bind msgm - *invit* invitemeproc inviteme {nick uhost hand chan } {set goodguy 1foreach ban [chanbans #aiud] {if {[string match -nocase "[lindex [split $ban] 0]" "$nick!$uhost"]} {set goodguy 0}}if { $goodguy } {putserv "INVITE $nick #aiud"return 1}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Feb 02, 2005 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[anophelus]]></name></author>
		<updated>2005-02-02T06:32:31-04:00</updated>

		<published>2005-02-02T06:32:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46116#p46116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46116#p46116"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46116#p46116"><![CDATA[
Thank you for fast replies! <br><br>I used the Sir_Fz's code, but the script doesn't work. It still invites the ones banned. Though (as I already mentioned) is weird that not even <em class="text-italics">.+ignore</em> doesn't really ignore requests for invite from the ones in ignore list.<br><br>As awyeah already observed, I would like the egg to compare the current banlist of the channel (not the bans given through the egg). The bans are given in channel by different ops or through X (cservice's bot), so it would be useless to compare only with the ban masks in egg's internal lists.<br><br>I will try to be more suggestive giving an example:<br><br>1. In channel's banlist is one ban on the mask *!*@someone.users.undernet.org<br>2. Somebody!~<a href="mailto:ident@someone.users.undernet.org">ident@someone.users.undernet.org</a> request invite by /msg aiud invite<br><br>Now if the script is simple as mentioned in first post:<br>3. Somebody gets invited and he can join<br>4. X (cservice) wil kick him out being banned on channel<br>5. Somebody's will rejoin<br>6. Somebody gets kicked again<br><br>And steps 5-6 goes on and on filling the screen with kick-rejoins from only one user.<br><br>But, if the script would work as I want:<br>3. The egg will compare Somebody's mask (nick / ident / host) with those current set in channel.<br>4. As Somebody's mask match the *!*@someone.users.undernet.org he will not get invitation.<br><br>It should be the same for other types of masks: <br>- Nick!*@*<br>- *!ident@*<br>- *!*@host.*<br>- *!*@*.domain<br>- or any other combination...<br><br>Hope that this is more clear.<br><br>Best regards!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5956">anophelus</a> — Wed Feb 02, 2005 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-02T05:43:40-04:00</updated>

		<published>2005-02-02T05:43:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46112#p46112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46112#p46112"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46112#p46112"><![CDATA[
if you use [isban ...], you will have to specify the exact ban, plus they are compared against the bots own list again (as matchban). so if you use as I suggested the matchban command, you will only have to put the hostmark and nick together without thinking which kind of banmask was used. You may use maskhost of course, but if you lets say banned just *!*ident@* or *!*@*.br or *!*@34.* you would get into troubles again (because they wouldnt be the same as maskhost does) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">. So I suggest using matchban and/or Sir_Fz' version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Feb 02, 2005 5:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-01T23:39:59-04:00</updated>

		<published>2005-02-01T23:39:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46100#p46100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46100#p46100"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46100#p46100"><![CDATA[
I think he wants channel bans only:<br><div class="codebox"><p>Code: </p><pre><code>isban &lt;ban&gt; [channel]    Returns: 1 if the specified ban is in the global ban list; 0 otherwise. If a channel is specified, that channel's ban list is checked as well.ispermban &lt;ban&gt; [channel]    Returns: 1 if the specified ban is in the global ban list AND is marked as permanent; 0 otherwise. If a channel is specified, that channel's ban list is checked as well.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Feb 01, 2005 11:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-01T11:49:25-04:00</updated>

		<published>2005-02-01T11:49:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46079#p46079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46079#p46079"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46079#p46079"><![CDATA[
I have a script that looks for matching bans, but I am not sure if it currently really working, im too lazy to test it the 100th time ^-^.<br><br>something like<div class="codebox"><p>Code: </p><pre><code>if { ![matchban "$nick!$uhost" $chan] } {...}</code></pre></div>should do the trick... at least in my interpretation of<blockquote class="uncited"><div>  matchban &lt;nick!user@host&gt; [channel]<br>    Returns: 1 if the specified nick!user@host matches a ban in the global<br>      ban list; 0 otherwise. If a channel is specified, that channel's ban<br>      list is checked as well.<br>    Module: channels</div></blockquote>at least as long the bans are properbly set via newchanban and not via putserv, in the last case you will have a do [string match ...] in a foreach loop from [chanbans $chan]<br><br>PS: Sir_Fz. yourmean, you were faster ^-^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Feb 01, 2005 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-02-01T11:47:39-04:00</updated>

		<published>2005-02-01T11:47:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46078#p46078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46078#p46078"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46078#p46078"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msgm - *invit* inviteme proc inviteme {nick uhost hand chan } {foreach ban [chanbans #aiud] { if {![string match -nocase "[lindex [split $ban] 0]" "$nick!$uhost"]} {   putserv "INVITE $nick #aiud"   } }}</code></pre></div>this should make it invite the nick only if he's not banned on #aiud.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Feb 01, 2005 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[anophelus]]></name></author>
		<updated>2005-02-01T10:53:25-04:00</updated>

		<published>2005-02-01T10:53:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46067#p46067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46067#p46067"/>
		<title type="html"><![CDATA[Invite script + invite-abbuse problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46067#p46067"><![CDATA[
Hi,<br>I am using undernet and I set +r on my channel (only registered users are allowed). Anyway, to allow also unregistered users I set and eggdrop to invite those users who ask for an invitation on channel. <br><br>This kind of solution was necessary because of the huge number of flooding bots and infected IRC clients who join my channel.<br><br>But then the problem arised with those who get banned on channel and are asking for invitation, abbusing the system. Lines like nexts are filling the whole screen:<br><br>[16:38] * X sets mode: +b *!*Luci@*.*<br>[16:39] * Joins: Luci1 (~Luci@210.255.109.204)<br>[16:39] * Luci1 was kicked by X ((stars2003) Bye !!!)<br>[16:39] * Joins: Luci1 (~Luci@210.255.109.204)<br>[16:39] * Luci1 was kicked by X ((stars2003) Bye !!!)<br><br>What I need is a solution to this problem. The eggdrop should accept invitations only from those who are not in the channel's ban list.<br><br>I tried also to put on ignore the masks of those banned (.+ignore *!*Luci@*), but because of some weird reason the ignore system is not functioning. (aiud is the egg)<br><br>[16:35] &lt;aiud&gt;   [  1] *!*luci@* (perm)<br>[16:35] &lt;aiud&gt;         c0ditza: requested<br><br>And the invitation script is next (a very basic one, as I don't have scripting knowledge) - invite.tcl:<br><blockquote class="uncited"><div>bind msgm - *invit* inviteme<br>proc inviteme {nick uhost hand chan } {<br>putserv "invite $nick #aiud"<br>}<br><br>putlog "Loaded invite.tcl successfully."</div></blockquote>I hope you'll find an answer to my problem.<br><br>Best regards!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5956">anophelus</a> — Tue Feb 01, 2005 10:53 am</p><hr />
]]></content>
	</entry>
	</feed>
