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

	<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-04-13T05:46:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-13T05:46:01-04:00</updated>

		<published>2005-04-13T05:46:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48078#p48078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48078#p48078"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48078#p48078"><![CDATA[
<blockquote class="uncited"><div>They're redundant...the right "hand made" list would be {stop:mode 0}, but you should always use the list commands to create lists to avoid problems and redundant string-&gt;list conversions.</div></blockquote>yeah in this case they are really, sorry, but in some cases they aren't. Maybe only when "eval" is involved, I don't exactly know it either, at least this one works always while <ul> <li>gave me a headache from time to time, that I can tell you for sure. I have been working a while abusing egghttp and fileevent to handle over someextra vars. Anything but this {} thing often (not always) caused problems, especially if there are more than 1 extra argument. Since I am a lazy guy I don't want to try and findle with <ul> <li>first, when no userinput is stored in this list and I can easily just use {} ^-^.<br><blockquote class="uncited"><div>btw: why not just .chanset #theChan -userexempts?</div></blockquote>hmm, I believe the bot wouldn't reject exempts from +o users, would he? Probably he doesn't really believe in his chan ops ^-^.</li></ul></li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Apr 13, 2005 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-04-12T21:17:16-04:00</updated>

		<published>2005-04-12T21:17:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48067#p48067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48067#p48067"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48067#p48067"><![CDATA[
<blockquote class="uncited"><div>However, these {} are not redudant of course, we need an explicit list and not just a whitespace containing string ^-^. I tried to use <ul> <li>and such things, but they somehow dont neccearyly do the same.</li></ul></div></blockquote>They're redundant...the right "hand made" list would be {stop:mode 0}, but you should always use the list commands to create lists to avoid problems and redundant string-&gt;list conversions.<br><br>btw: why not just .chanset #theChan -userexempts?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Apr 12, 2005 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-12T06:50:02-04:00</updated>

		<published>2005-04-12T06:50:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48050#p48050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48050#p48050"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48050#p48050"><![CDATA[
<blockquote class="uncited"><div>I didnt know you could pass a variable in a bind either. Can you pass strings as well as integers?</div></blockquote>anything is possible, you can even supply configurable variables as content like in my <a href="http://forum.egghelp.org/viewtopic.php?p=47960#47960" class="postlink">chanservneed</a> script.<br>However, these {} are not redudant of course, we need an explicit list and not just a whitespace containing string ^-^. I tried to use <ul> <li>and such things, but they somehow dont neccearyly do the same.</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Apr 12, 2005 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-04-12T04:03:21-04:00</updated>

		<published>2005-04-12T04:03:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48045#p48045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48045#p48045"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48045#p48045"><![CDATA[
I didnt know you could pass a variable in a bind either. Can you pass strings as well as integers?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Tue Apr 12, 2005 4:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-11T12:30:21-04:00</updated>

		<published>2005-04-11T12:30:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48014#p48014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48014#p48014"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48014#p48014"><![CDATA[
That looks new for me, thanx for sharing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Apr 11, 2005 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-11T06:19:39-04:00</updated>

		<published>2005-04-11T06:19:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47996#p47996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47996#p47996"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47996#p47996"><![CDATA[
if you do something like<div class="codebox"><p>Code: </p><pre><code>bind pub m !stop-e "{stop:mode} {0}"bind pub m !start-e "{stop:mode} {1}"proc stop:mode {force nick uhost hand chan arg} {  set ::forcee([string tolower $chan]) $force}</code></pre></div>you can save a lot of code... i dont know about speed, but i don't know why it should be slow <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">.<br>you could even skip the string tolower, the channel name capitalization will always be the same for the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 11, 2005 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-11T05:44:16-04:00</updated>

		<published>2005-04-11T05:44:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47992#p47992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47992#p47992"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47992#p47992"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach echan [channels] { set forcee([string tolower $echan]) 1}bind mode - "* +e" force:modebind pub m * stop:modeproc force:mode {nick uhost hand chan mode target} {  global forcee if {(![isbotnick $nick]) &amp;&amp; ([botisop $chan]) &amp;&amp; ($forcee([string tolower $chan) == 1)} {   putquick "MODE $chan –e $target" -next   } }proc stop:mode {nick uhost hand chan arg} { global forcee if {[string equal -nocase "!stop-e" "[lindex [split $arg] 0]"]} {  set forcee([string tolower $chan]) 0  return 0 } if {[string equal -nocase "!start-e" "[lindex [split $arg] 0]"]} {  set forcee([string tolower $chan]) 1  return 0 }}</code></pre></div>!stop-e !start-e to disable or enable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Apr 11, 2005 5:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[overfly]]></name></author>
		<updated>2005-04-11T05:02:34-04:00</updated>

		<published>2005-04-11T05:02:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47989#p47989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47989#p47989"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47989#p47989"><![CDATA[
Can there be a trigger built in? For example !stop-e  So the Bot stops pushing -e !<br><br><br>Greetz<br><br>overfly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5865">overfly</a> — Mon Apr 11, 2005 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vixs]]></name></author>
		<updated>2005-04-11T02:08:04-04:00</updated>

		<published>2005-04-11T02:08:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47985#p47985</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47985#p47985"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47985#p47985"><![CDATA[
thanks a lot awyeah <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=4943">Vixs</a> — Mon Apr 11, 2005 2:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-11T02:00:02-04:00</updated>

		<published>2005-04-11T02:00:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47983#p47983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47983#p47983"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47983#p47983"><![CDATA[
Something like this is more simpler indeed.<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "*+e*" force:modeproc force:mode {nick uhost hand chan mode target} { if {[botisop $chan] &amp;&amp; ![isbotnick $nick]} {  putquick "MODE $chan –e $target" -next  }}</code></pre></div>You can check in the bind for "*+e*" or check in the procedure for +e, if {[string match "*+e*" $mode]}, depending upon which ever you prefer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Apr 11, 2005 2:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vixs]]></name></author>
		<updated>2005-04-11T01:41:41-04:00</updated>

		<published>2005-04-11T01:41:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47981#p47981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47981#p47981"/>
		<title type="html"><![CDATA[forced -e]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47981#p47981"><![CDATA[
Actually i wanted to prevent people from setting +e on themlseves or others on chan, i managed to put around some coding <br><div class="codebox"><p>Code: </p><pre><code>bind mode -|- "% +e" forcemod proc forcemod {nick uhost hand chan args} {set modechange [join $args]if {[scan $modechange "+e %s" $chan] != 1} { return }global botnickputquick “MODE $chan –e $nick” -next   }</code></pre></div>I dunno how far this is right, but this does the execution like<br><br> Vixs sets mode: +e somenick!*@*<br>* RockBabe sets mode: -e Vixs!*@*<br>Instead of -e somenick , its doing the reverse.<br>How can the bot -e the target ie somenick in this case.<br>Please Help me correct the code.<br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4943">Vixs</a> — Mon Apr 11, 2005 1:41 am</p><hr />
]]></content>
	</entry>
	</feed>
