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

	<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-08-23T06:09:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T06:09:28-04:00</updated>

		<published>2004-08-23T06:09:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40061#p40061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40061#p40061"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40061#p40061"><![CDATA[
That's why I used the word 'flexible'. Ban types can be of hundreds of types evidently.<br><br>Hmmm 'matchban' never heard that one before, though I'll look that up, thanks... user!  <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=4875">awyeah</a> — Mon Aug 23, 2004 6:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-23T06:04:48-04:00</updated>

		<published>2004-08-23T06:04:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40057#p40057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40057#p40057"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40057#p40057"><![CDATA[
Using 'ischanban' you have to know the way the bans are masked. (some bans might be created by other users/bots and have a different format)<br>Try 'matchban' instead <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=2878">user</a> — Mon Aug 23, 2004 6:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T03:08:53-04:00</updated>

		<published>2004-08-23T03:08:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40049#p40049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40049#p40049"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40049#p40049"><![CDATA[
The script you want to produce cannot be very flexible as you want it to be but still can almostly perform the tasks you have mentioned.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> Something like this should do it: <br><div class="codebox"><p>Code: </p><pre><code>bind msg - !invite msg:invite proc msg:invite {nick uhost hand arg} {   if {([validuser $nick])} {    set chan [lindex [split $arg] 0]    set host "*!*@[lindex [split $uhost @] 1]"    if {[(string equal -nocase "#centrala" $chan])}  {     if {([ischanban $host $chan])} {      return 0       }       if {(![ischanban $host $chan])} {       putserv "INVITE $nick $chan"; return 0      }    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 23, 2004 3:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-08-23T02:25:43-04:00</updated>

		<published>2004-08-23T02:25:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40048#p40048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40048#p40048"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40048#p40048"><![CDATA[
[quote="awyeah"]For checking the bans in the channels banlist you can use:<br>if {([ischanban *!*@*.aol.com #mychannel])} {<br><br><br>..hi there ,<br>you mean,to add manualy the bans ?! On that channel,we never know who will be banned next (a spammer for example).Here's an example:<br>The banlist looks like this:<br>#  Channel    SetBy        Sec  Ban<br>1  #centrala  X          29767  *!*@*.ph.*<br>2  #centrala  ViperFox   48743  *!*@82.76.161.72<br><br>The user | Alexane (<a href="mailto:Moi@ip68-2-203-249.ph.ph.cox.net">Moi@ip68-2-203-249.ph.ph.cox.net</a>) is banned,it matches the first ban on the banlist.But he requests invite to the bot.Now,the bot is inviting him and Alexane can join the channel.I want something to prevent this.For the ANY ban given,the bot looks in the banlist and compares the users hostname.In that case,the bot should ignore user Alexane for matching the first ban.<br>Cheers!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5314">reallove</a> — Mon Aug 23, 2004 2:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T00:17:50-04:00</updated>

		<published>2004-08-23T00:17:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40034#p40034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40034#p40034"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40034#p40034"><![CDATA[
For checking the bans in the channels banlist you can use:<br>if {([ischanban *!*@*.aol.com #mychannel])} {<br><br>For checking bans in the bots banlist you can use:<br>if {([isban *!*@*.aol.com #mychannel])} {<br><br>If any of the banmasks matches the channel banlist or bots global banlist then you can make the script return 0 to ignore the request or use 'newignore' to put the user on ignore.<br><br>By the way to prevent this you can bind the trigger for specific users to be able to access the !invite command, such as binding to n (owners), m (masters), o (ops), v (voices), f (friends) and etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 23, 2004 12:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[netux]]></name></author>
		<updated>2004-08-22T18:10:11-04:00</updated>

		<published>2004-08-22T18:10:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40014#p40014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40014#p40014"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40014#p40014"><![CDATA[
you could just check if it's a valid user, off course that you have to add all ppl to user list.<br>using GodOfSuicide sample code:<div class="codebox"><p>Code: </p><pre><code>bind msg - "invite" msg:invite proc msg:invite { nick uhost hand arg } {  if {[validuser $nick]} {     set chan [lindex [split $arg] 0]     if {[string tolower $chan] == "#mychan"}  {       putserv "INVITE $nick $chan"     }  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5272">netux</a> — Sun Aug 22, 2004 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-08-22T12:35:56-04:00</updated>

		<published>2004-08-22T12:35:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40005#p40005</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40005#p40005"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40005#p40005"><![CDATA[
hey there,<br>the inviting thing works very well, thank you. But now a new problem has arisen: everybody knows the trick, even those who aren't supposed to. So i would like to add a new feature to the script: the bot has to check the banlist and if any of the bans in it matches the inviting client's host, must ignore its request. <br>help help help! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Thanx a lot!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5314">reallove</a> — Sun Aug 22, 2004 12:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-08-14T05:44:57-04:00</updated>

		<published>2004-08-14T05:44:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39771#p39771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39771#p39771"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39771#p39771"><![CDATA[
GodOfSuicide , thanks a lot . It's ok,it's just what I needed !<br>}{<br>reallove.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5314">reallove</a> — Sat Aug 14, 2004 5:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-08-14T01:11:15-04:00</updated>

		<published>2004-08-14T01:11:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39768#p39768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39768#p39768"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39768#p39768"><![CDATA[
i thinks he wants the user to be invited by the bot<br><div class="codebox"><p>Code: </p><pre><code>bind msg - "invite" msg:inviteproc msg:invite { nick uhost hand arg } { set chan [lindex [split $arg] 0] if {[string tolower $chan] == "#mychan"}  {    putserv "INVITE $nick $chan" }}</code></pre></div>you maybe want to add a check if the bot has op or enable multiple chans....shouldnt be a problem with basic tcl knowlege<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Sat Aug 14, 2004 1:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-14T01:01:32-04:00</updated>

		<published>2004-08-14T01:01:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39766#p39766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39766#p39766"/>
		<title type="html"><![CDATA[Re: The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39766#p39766"><![CDATA[
<blockquote class="uncited"><div>Hello,<br>I've searched in the archives,looked around the forums .. but I didn't find a script like this : the bot is oped in a big channel,and ANYONE who is not in the channel to auto-invite in that channel with a simple command :"/msg botnick invite #channel" . No password needed,no user-files to be created. Can anyone help me ? <br>Cheers,<br>reallove</div></blockquote>In DCC with the bot type:<br><div class="codebox"><p>Code: </p><pre><code>.chanset &lt;#channel&gt; need-invite putquick "PRIVMSG ChanServ :INVITE  &lt;#channel&gt; $botnick"</code></pre></div>If there is any other way to invite rather than chanserv when a channel has been set to +i, use that then.  <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> — Sat Aug 14, 2004 1:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-08-13T17:05:55-04:00</updated>

		<published>2004-08-13T17:05:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39762#p39762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39762#p39762"/>
		<title type="html"><![CDATA[The INVITE problem,again]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39762#p39762"><![CDATA[
Hello,<br>I've searched in the archives,looked around the forums .. but I didn't find a script like this : the bot is oped in a big channel,and ANYONE who is not in the channel to auto-invite in that channel with a simple command :"/msg botnick invite #channel" . No password needed,no user-files to be created. Can anyone help me ? <br>Cheers,<br>reallove<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5314">reallove</a> — Fri Aug 13, 2004 5:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
