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

	<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>2013-01-27T15:40:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-27T15:40:26-04:00</updated>

		<published>2013-01-27T15:40:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100807#p100807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100807#p100807"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100807#p100807"><![CDATA[
I always use that kind of code. I like using switch because it gives me alot of movement in the future if i want to update the script and its easier to read the code atleast for me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Jan 27, 2013 3:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2013-01-27T15:38:18-04:00</updated>

		<published>2013-01-27T15:38:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100806#p100806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100806#p100806"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100806#p100806"><![CDATA[
Madalin,<br>No worries, your code looks good enough to me. Using switch might be a bit excessive, but then again, it makes the function easy to extend for other modes as well.<br><br>If you don't care for compatibility with older versions of tcl, you could use "string equal -nocase $temp(devoice) $chan" when comparing the channel (as for the case of the channel name, that all comes down to what the actual mode-changer used).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jan 27, 2013 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-27T15:30:07-04:00</updated>

		<published>2013-01-27T15:30:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100804#p100804</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100804#p100804"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100804#p100804"><![CDATA[
Im just not used to use <br><blockquote class="uncited"><div>bind MODE - "#saphira +v" egghelp:mode </div></blockquote>Yet i will try use something like this in the future ... and i used string tolower  to check the channel because in the past i encoutered problems with the channel names. $temp(chan) != $chan (#Saphira with #saphira) sometimes the eggdrop would recognise the channel with an "S" and sometimes with 's'<br><br>So thanks for the hints <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=6396">Madalin</a> — Sun Jan 27, 2013 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2013-01-27T15:10:28-04:00</updated>

		<published>2013-01-27T15:10:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100800#p100800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100800#p100800"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100800#p100800"><![CDATA[
Since the script uses pushmode, you'd still gain the mode-stacking advantage, yet you don't have to bother with dividing up each mode change yourself. As for the performance impact, 1 bind trigger as opposed to 6, I'd consider that neglible.<br><br>If you're a real Cookie Cutter, Just change the bind mask from * to "#saphira +v", and skip the checks for channelname and mode:<div class="codebox"><p>Code: </p><pre><code>bind MODE - "#saphira +v" egghelp:modeproc egghelp:mode {nick host handle channel mode target} {  if {![string match -nocase "*CServe.quakenet.org*" [lindex [split $host @] 1]] || ![isbotnick $nick]} {    pushmode $channel -v $target  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jan 27, 2013 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-01-27T14:59:12-04:00</updated>

		<published>2013-01-27T14:59:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100799#p100799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100799#p100799"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100799#p100799"><![CDATA[
I knew that, my point was that the <em class="text-italics">egghelp:mode</em> would have been triggered for each mode change in particular. For instance, in a <em class="text-italics">+vvvvvv user1 user2 user3 user4 user5 user6</em> mode, the <em class="text-italics">egghelp:mode</em> would be triggered 6 times.<br><br>A better way to deal with this would have been a <em class="text-italics">raw mode</em> bind.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jan 27, 2013 2:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2013-01-27T10:44:36-04:00</updated>

		<published>2013-01-27T10:44:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100794#p100794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100794#p100794"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100794#p100794"><![CDATA[
Mode bindings are indeed triggered once for each mode, not once for the MODE command. Separating which parameter (in this case, the nickname), is also handled by eggdrop itself - target will always be the parameter applied to this mode-change (or empty string in the event that the current mode-change does not have a parameter).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jan 27, 2013 10:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-27T09:37:25-04:00</updated>

		<published>2013-01-27T09:37:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100791#p100791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100791#p100791"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100791#p100791"><![CDATA[
He only asked for a script that will devoice used who are not voiced by Q (or the bot himself) if the user gets +vo i don`t think -v would mean something tot that user. So i only matched the +v channel mode and never tested for +vo<br><br>But i will make another version now that you mentioned that<br><br><br>### EDIT<br>I tested for +vo it seems like the bot keeps tracks for every mode once so its should be ok<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Jan 27, 2013 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-01-27T09:35:09-04:00</updated>

		<published>2013-01-27T09:35:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100790#p100790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100790#p100790"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100790#p100790"><![CDATA[
What will happen if the mode change is not just +v? For example: +vo user1 user2<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Jan 27, 2013 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-27T09:23:56-04:00</updated>

		<published>2013-01-27T09:23:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100788#p100788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100788#p100788"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100788#p100788"><![CDATA[
You can try this code<br>So what will actually do is if someone will voice an user on that specified channel from the script and its not Q it will devoice the user who got voiced. If bot voices someone he wont do anything<br><div class="codebox"><p>Code: </p><pre><code>bind MODE - * egghelp:modeset temp(devoice) #saphiraproc egghelp:mode {nick uhost hand chan mode target} {global tempswitch -exact -- $mode {"+v" {if {[string tolower $temp(devoice)] == [string tolower $chan]} {if {![string match -nocase "*CServe.quakenet.org*" [lindex [split $uhost @] 1]] || ![isbotnick $nick]} {pushmode $chan -v $target}}}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Sun Jan 27, 2013 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ozgur1]]></name></author>
		<updated>2012-04-15T17:42:08-04:00</updated>

		<published>2012-04-15T17:42:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99201#p99201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99201#p99201"/>
		<title type="html"><![CDATA[A bit different devoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99201#p99201"><![CDATA[
Hello Everyone,<br><br>I need a little different .tcl for my eggdrop.<br><br>I'll use it on Quakenet.I want to devoice who had been voiced by @'s except Q bot.e.g If I voice someone my bot will devoice him.But if Q voice him my eggdrop will do nothing.I found a little code for irc script but i couldn't find .tcl version of it.Here is the script version of it.Maybe it helps to understand what i want <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> the hostmask is belong to Q bot.If there is a few way to do it i'll really appreciate.<br><div class="codebox"><p>Code: </p><pre><code>on *:VOICE:#CHANNEL:{  if ($address($nick,2) != *!*@CServe.quakenet.org) { mode # -v $vnick }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11966">ozgur1</a> — Sun Apr 15, 2012 5:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
