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

	<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-12-31T10:27:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-31T10:27:53-04:00</updated>

		<published>2005-12-31T10:27:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58858#p58858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58858#p58858"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58858#p58858"><![CDATA[
Another approach:<div class="codebox"><p>Code: </p><pre><code>bind join - * fooproc foo {n u h c} { if {[string tolower $n] == $n} {  pushmode $c +v $n }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Dec 31, 2005 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-12-31T09:36:13-04:00</updated>

		<published>2005-12-31T09:36:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58857#p58857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58857#p58857"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58857#p58857"><![CDATA[
Agh! my bad, duno why I had the wrong impression he posted something else. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> I'd better take a nap. <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=187">caesar</a> — Sat Dec 31, 2005 9:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-31T09:04:15-04:00</updated>

		<published>2005-12-31T09:04:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58854#p58854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58854#p58854"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58854#p58854"><![CDATA[
'continue' would be usless, since he doesn't want to continue if he found an upper-case letter in the nick. If you're wondering why he didn't use<div class="codebox"><p>Code: </p><pre><code>if {[string is lower $n]} { pushmode $c +v $n}</code></pre></div>that's because if there are numbers or characters like (^-_...etc) in the nick, [string is lower] will return 0.<blockquote class="uncited"><div>.tcl string is lower sir_fz<br>Tcl: 0</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Dec 31, 2005 9:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-12-31T05:42:40-04:00</updated>

		<published>2005-12-31T05:42:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58846#p58846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58846#p58846"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58846#p58846"><![CDATA[
Shouldn't 'return' be 'continue' by any chance? And the 'pushmode $c +v $n' shouldn't be placed in the foreach loop after 'if [string is upper $ch] return'  (wich should be 'continue' not 'return')?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Dec 31, 2005 5:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-31T00:04:49-04:00</updated>

		<published>2005-12-31T00:04:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58835#p58835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58835#p58835"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58835#p58835"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * fooproc foo {n u h c} {   foreach ch [split $n {}] {      if [string is upper $ch] return   }   pushmode $c +v $n}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Dec 31, 2005 12:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[indigo`]]></name></author>
		<updated>2005-12-30T21:58:16-04:00</updated>

		<published>2005-12-30T21:58:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58828#p58828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58828#p58828"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58828#p58828"><![CDATA[
I want the bot to voice lowercased nicks when they enter channel, whether they get opped or not, and whether it's their first time in channel or they've rejoined from a split.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7168">indigo`</a> — Fri Dec 30, 2005 9:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-30T21:55:41-04:00</updated>

		<published>2005-12-30T21:55:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58827#p58827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58827#p58827"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58827#p58827"><![CDATA[
You want the bot to voice lower-cased nicks when they change nick or rejoin from a split?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Dec 30, 2005 9:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[indigo`]]></name></author>
		<updated>2005-12-30T21:28:10-04:00</updated>

		<published>2005-12-30T21:28:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58826#p58826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58826#p58826"/>
		<title type="html"><![CDATA[Special voicing script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58826#p58826"><![CDATA[
This code worked well in the past.  Now it doesn't.<br><br>I need it to voice only those with lowercase nicks.  What am I doing wrong?<br><br>Right now, it only voices them if they deop, but not when they enter or rejoin.<br><div class="codebox"><p>Code: </p><pre><code>global alpha capsset caps abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZset alpha ABCDEFGHIJKLMNOPQRSTUVWXYZbind nick - * nick_voicebind mode - "#channel -o" mode_voicebind rejn - * rejn_voiceproc nick_voice {nick hand host chan new} {global alpha capsset nfirst [string index $new 0]set nsecond [string index $new 1]if { [string first $nfirst $alpha] == -1 } {    set nfirst $nsecond   }if { [string first $nfirst $caps] &gt;= 0 } {    pushmode $chan +v $new       }}proc mode_voice {nick hand host chan mode victim} {global alpha capsset nfirst [string index $victim 0]set nsecond [string index $victim 1]if { [string first $nfirst $alpha] == -1 } {    set nfirst $nsecond   }if { [string first $nfirst $caps] &gt;= 0 } {    pushmode $chan +v $victim       }}proc rejn_voice {nick hand host chan} {global alpha capsset nfirst [string index $nick 0]set nsecond [string index $nick 1]if { [string first $nfirst $alpha] == -1 } {    set nfirst $nsecond   }if { [string first $nfirst $caps] &gt;= 0 } {    pushmode $chan +v $nick      }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7168">indigo`</a> — Fri Dec 30, 2005 9:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
