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

	<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>2003-07-03T01:47:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mcdarby]]></name></author>
		<updated>2003-07-03T01:47:01-04:00</updated>

		<published>2003-07-03T01:47:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22932#p22932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22932#p22932"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22932#p22932"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>[lsearch [channel info $c] -R]&gt;-1]</div></blockquote>Did i tell you to add a ] after the replacement?</div></blockquote>Sorry about that, I'm just new to TCL Scripting and added the ] by mistake. I removed that and it works right now, thanks.<br><br>--<br>McDarby<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1594">mcdarby</a> — Thu Jul 03, 2003 1:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-03T01:29:21-04:00</updated>

		<published>2003-07-03T01:29:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22931#p22931</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22931#p22931"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22931#p22931"><![CDATA[
<blockquote class="uncited"><div>[lsearch [channel info $c] -R]&gt;-1]</div></blockquote>Did i tell you to add a ] after the replacement?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Jul 03, 2003 1:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mcdarby]]></name></author>
		<updated>2003-07-03T01:25:37-04:00</updated>

		<published>2003-07-03T01:25:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22930#p22930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22930#p22930"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22930#p22930"><![CDATA[
<blockquote class="uncited"><div>Do what i said and it'll work.</div></blockquote>I did exactly what you said and just showed you the message that I got when I tried what you said.<br><br>--<br>McDarby<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1594">mcdarby</a> — Thu Jul 03, 2003 1:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-03T01:15:11-04:00</updated>

		<published>2003-07-03T01:15:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22929#p22929</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22929#p22929"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22929#p22929"><![CDATA[
Do what i said and it'll work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Jul 03, 2003 1:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mcdarby]]></name></author>
		<updated>2003-07-03T01:05:13-04:00</updated>

		<published>2003-07-03T01:05:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22928#p22928</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22928#p22928"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22928#p22928"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>[21:09] Tcl error [mode-R]: unknown channel command: should be one of: add, set, info, remove</div></blockquote>That's because you're running an old version of eggdrop.<br><br>replace <div class="codebox"><p>Code: </p><pre><code>[channel get $c R]</code></pre></div> with <div class="codebox"><p>Code: </p><pre><code>[lsearch [channel info $c] +R]&gt;-1</code></pre></div></div></blockquote>Tried that, comes back as this.<br><br>[22:02] Tcl error [mode-R]: syntax error in expression "[lsearch [channel info $c] -R]&gt;-1]&amp;&amp;[string match *R* [linde"<br>[22:03] Tcl error [mode+R]: syntax error in expression "[lsearch [channel info $c] +R]&gt;-1]&amp;&amp;![string match *R* [lind"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1594">mcdarby</a> — Thu Jul 03, 2003 1:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-03T00:47:05-04:00</updated>

		<published>2003-07-03T00:47:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22927#p22927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22927#p22927"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22927#p22927"><![CDATA[
<blockquote class="uncited"><div>[21:09] Tcl error [mode-R]: unknown channel command: should be one of: add, set, info, remove</div></blockquote>That's because you're running an old version of eggdrop.<br><br>replace <div class="codebox"><p>Code: </p><pre><code>[channel get $c R]</code></pre></div> with <div class="codebox"><p>Code: </p><pre><code>[lsearch [channel info $c] +R]&gt;-1</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Jul 03, 2003 12:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mcdarby]]></name></author>
		<updated>2003-07-03T00:43:01-04:00</updated>

		<published>2003-07-03T00:43:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22926#p22926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22926#p22926"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22926#p22926"><![CDATA[
<blockquote class="uncited"><div>For static nicks/hostmasks it's much better to do the "filtering" on bind level, so include the nick and/or hostmask in the bind and drop the check inside the proc.<br><br>Sir_Fz: The sign bind takes care of other quits<br><br>If you've set "wait-split" very low, the splt bind's not needed because sign (quit) is triggered $wait-split seconds later.<br>If the service bot never parts the channel, get rid of the part bind <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><div class="codebox"><p>Code: </p><pre><code># change this to match the service botset serviceBot nick!ident@hostbind splt - "% $serviceBot" mode-Rbind sign - "% $serviceBot" mode-Rbind part - "% $serviceBot" mode-Rbind join - "% $serviceBot" mode+R# use '.chanset #chan +R' to enable on a channelsetudef flag Rproc mode-R {n u h c {a ""}} {if {[channel get $c R]&amp;&amp;[string match *R* [lindex [split [getchanmode $c]] 0]]} {pushmode $c -R}}proc mode+R {n u h c} {if {[channel get $c R]&amp;&amp;![string match *R* [lindex [split [getchanmode $c]] 0]]} {pushmode $c +R}}</code></pre></div></div></blockquote>Okay, a test of that script returned the following errors.<br><br>.chanset #ForestHaven +R<br>Successfully set modes { +R  } on #Channel.<br>[21:08] #ErikMouse# chanset #Channel +R <br>[21:09] Tcl error [mode-R]: unknown channel command: should be one of: add, set, info, remove<br>[21:10] @#Channel (+ctn) : [m/5 o/3 v/2 n/0 b/55 e/- I/-]<br>[21:10] Tcl error [mode+R]: unknown channel command: should be one of: add, set, info, remove<br><br>--<br>McDarby<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1594">mcdarby</a> — Thu Jul 03, 2003 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-07-02T17:46:30-04:00</updated>

		<published>2003-07-02T17:46:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22921#p22921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22921#p22921"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22921#p22921"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Actually, I'm getting a bit confused of your use of the user defined flag "R"... :\</div></blockquote>I'm sorry <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> I couldn't find a different (short) name for it...do you have any suggestions?<br><br>EDIT: I ditn't fake that quote. He changed his post ;P</div></blockquote>hehe... true. unfortunately slennox disabled the option to "delete" postings, where one could read reactions on postings that were already purged.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Jul 02, 2003 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-07-02T17:40:42-04:00</updated>

		<published>2003-07-02T17:40:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22920#p22920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22920#p22920"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22920#p22920"><![CDATA[
<blockquote class="uncited"><div>I'm sorry <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> I couldn't find a different (short) name for it...do you have any suggestions?</div></blockquote>+/-restricted<br>+/-needregister<br>+/-userneedregister<br>+/-userneedregisterbeforejoin<br>+/needsomesleep<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Jul 02, 2003 5:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-02T17:41:23-04:00</updated>

		<published>2003-07-02T17:36:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22919#p22919</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22919#p22919"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22919#p22919"><![CDATA[
<blockquote class="uncited"><div>Actually, I'm getting a bit confused of your use of the user defined flag "R"... :\</div></blockquote>I'm sorry <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> I couldn't find a different (short) name for it...do you have any suggestions?<br><br>EDIT: I ditn't fake that quote. He changed his post ;P<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 02, 2003 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-07-02T17:33:55-04:00</updated>

		<published>2003-07-02T17:33:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22918#p22918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22918#p22918"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22918#p22918"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Throw in a "!" somewhere <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>Where?</div></blockquote>nvm ... too much wine on an evening :\<br><br>Got confused with the channel mode "+R", the setting on the bot "+R" and the naming of the proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Jul 02, 2003 5:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-02T17:23:20-04:00</updated>

		<published>2003-07-02T17:23:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22916#p22916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22916#p22916"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22916#p22916"><![CDATA[
<blockquote class="uncited"><div>Throw in a "!" somewhere <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>Where?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 02, 2003 5:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-07-02T17:19:15-04:00</updated>

		<published>2003-07-02T17:19:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22915#p22915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22915#p22915"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22915#p22915"><![CDATA[
<blockquote class="uncited"><div>[snip]<br>proc mode+R {n u h c} {<br>if {[channel get $c R]&amp;&amp;![string match *R* [lindex [split [getchanmode $c]] 0]]} {<br>pushmode $c +R<br>}<br>}<br>[/code]</div></blockquote>Throw in a "!" somewhere <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=282">egghead</a> — Wed Jul 02, 2003 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-02T17:04:36-04:00</updated>

		<published>2003-07-02T17:04:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22912#p22912</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22912#p22912"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22912#p22912"><![CDATA[
For static nicks/hostmasks it's much better to do the "filtering" on bind level, so include the nick and/or hostmask in the bind and drop the check inside the proc.<br><br>Sir_Fz: The sign bind takes care of other quits<br><br>If you've set "wait-split" very low, the splt bind's not needed because sign (quit) is triggered $wait-split seconds later.<br>If the service bot never parts the channel, get rid of the part bind <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><div class="codebox"><p>Code: </p><pre><code># change this to match the service botset serviceBot nick!ident@hostbind splt - "% $serviceBot" mode-Rbind sign - "% $serviceBot" mode-Rbind part - "% $serviceBot" mode-Rbind join - "% $serviceBot" mode+R# use '.chanset #chan +R' to enable on a channelsetudef flag Rproc mode-R {n u h c {a ""}} {if {[channel get $c R]&amp;&amp;[string match *R* [lindex [split [getchanmode $c]] 0]]} {pushmode $c -R}}proc mode+R {n u h c} {if {[channel get $c R]&amp;&amp;![string match *R* [lindex [split [getchanmode $c]] 0]]} {pushmode $c +R}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jul 02, 2003 5:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-02T13:38:28-04:00</updated>

		<published>2003-07-02T13:38:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22905#p22905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22905#p22905"/>
		<title type="html"><![CDATA[+R Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22905#p22905"><![CDATA[
Well that's better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>and I don't know how to create that proc <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>but does this code work when Botserv quits for a reason (Lag or something) ? cuz I think it only works in case of a nwtwork split.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 02, 2003 1:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
