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

	<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-01-03T14:53:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-01-03T14:53:58-04:00</updated>

		<published>2004-01-03T14:53:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32143#p32143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32143#p32143"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32143#p32143"><![CDATA[
The day will come when I'll stop doing these mistakes <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jan 03, 2004 2:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-03T14:33:32-04:00</updated>

		<published>2004-01-03T14:33:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32139#p32139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32139#p32139"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32139#p32139"><![CDATA[
Either add an "global botnick" line before the first if or add two :: like $::botnick insted of $botnick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jan 03, 2004 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yoinx]]></name></author>
		<updated>2004-01-03T14:17:15-04:00</updated>

		<published>2004-01-03T14:17:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32138#p32138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32138#p32138"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32138#p32138"><![CDATA[
ok i finally got the listing, the first error is <br><br>Tcl error [join_main]: can't read "botnick": no such variable<br><br>I'm gonna try to set that btu i thought it was already suposed to be set<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4339">Yoinx</a> — Sat Jan 03, 2004 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yoinx]]></name></author>
		<updated>2004-01-03T00:07:42-04:00</updated>

		<published>2004-01-03T00:07:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32102#p32102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32102#p32102"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32102#p32102"><![CDATA[
not none as far as i could tell, but its running on a remote shell as a bg proc so i cant really tell.. its pretty well just ignored everything.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4339">Yoinx</a> — Sat Jan 03, 2004 12:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-01-02T14:30:30-04:00</updated>

		<published>2004-01-02T14:30:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32085#p32085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32085#p32085"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32085#p32085"><![CDATA[
It should work, are there any errors ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jan 02, 2004 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yoinx]]></name></author>
		<updated>2004-01-02T14:21:56-04:00</updated>

		<published>2004-01-02T14:21:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32084#p32084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32084#p32084"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32084#p32084"><![CDATA[
The other thing i needed to ask is, im using thsi bot to monito irc channels not botnet channels, if that changes the code any... cuz it doesnt seem to work when I tried it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4339">Yoinx</a> — Fri Jan 02, 2004 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-01-02T13:36:43-04:00</updated>

		<published>2004-01-02T13:36:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32081#p32081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32081#p32081"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32081#p32081"><![CDATA[
Lil tip: Instead of if "[string tolower $nick]" != "![string tolower $botnick]" use "[string equal -nocase $nick $::botnick]" (and don't forget to drop the " cos are not needed, are just for human look.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jan 02, 2004 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yoinx]]></name></author>
		<updated>2004-01-02T12:02:12-04:00</updated>

		<published>2004-01-02T12:02:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32076#p32076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32076#p32076"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32076#p32076"><![CDATA[
Thanks Sir_FZ I appreciate the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4339">Yoinx</a> — Fri Jan 02, 2004 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-01-02T11:37:14-04:00</updated>

		<published>2004-01-02T11:37:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32074#p32074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32074#p32074"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32074#p32074"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set main_chan "#bottest" set req_chan "#bottest2" bind join - "$main_chan *" join_main proc join_main {nick uhost hand chan} { if {"[string tolower $nick]" != "[string tolower $botnick]" &amp;&amp; ![onchan $nick $::req_chan]} { newchanban $chan *!*@[lindex [split $uhost @] 1] notonchan "You're not allowed to join here unless you're in $::req_chan" 2 } }</code></pre></div>this will check joins in $main_chan, if the nick is not on $req_chan he will be banned from $main_chan for 2 mins.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jan 02, 2004 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Yoinx]]></name></author>
		<updated>2004-01-02T08:49:53-04:00</updated>

		<published>2004-01-02T08:49:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32069#p32069</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32069#p32069"/>
		<title type="html"><![CDATA[temp ban if not on both channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32069#p32069"><![CDATA[
Basically what im trying to do is have the bot set up so that it will check to see if a user is on both of two channels, if they arent i want it to set a temporary ban. I tried modifying one of the premade scripts that came with the bot then got a reply on a post on another forum where someone had helped me with my coding and ended up with: <br><br>set main_chan "#bottest" <br>set req_chan "#bottest2" <br><br>bind join - * join_main <br><br>proc join_main {nick uhost hand chan} { <br>if {([string tolower $nick] != [string tolower $botnick]) &amp;&amp; (![onchan $nick $main_chan] || ![onchan $nick $req_chan])} { <br> <br>pushmode $main_chan +b $nick!*@* <br>} <br>} <br><br><br>The only problem with this though is it checks on both channels ... all i really want it to do is when someone joins main_chan check req_chan to see if they're on it. If they arent I want to temp ban them from main chan. if someone could help i would appreciate it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4339">Yoinx</a> — Fri Jan 02, 2004 8:49 am</p><hr />
]]></content>
	</entry>
	</feed>
