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

	<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-10-09T09:01:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-09T09:01:40-04:00</updated>

		<published>2004-10-09T09:01:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41701#p41701</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41701#p41701"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41701#p41701"><![CDATA[
<blockquote class="uncited"><div>My bad.<br>/me *whacks* himself with a trout.<br><br>Replace:<div class="codebox"><p>Code: </p><pre><code>     pushmode "MODE $chan +v $person" </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>     pushmode $chan +v $person</code></pre></div></div></blockquote>Cool, it's working perfectly well again!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> A million thanks to you for ya great help.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Sat Oct 09, 2004 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-09T08:47:15-04:00</updated>

		<published>2004-10-09T08:47:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41699#p41699</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41699#p41699"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41699#p41699"><![CDATA[
My bad.<br>/me *whacks* himself with a trout.<br><br>Replace:<div class="codebox"><p>Code: </p><pre><code>     pushmode "MODE $chan +v $person" </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>     pushmode $chan +v $person</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Oct 09, 2004 8:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-09T06:39:35-04:00</updated>

		<published>2004-10-09T06:39:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41697#p41697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41697#p41697"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41697#p41697"><![CDATA[
Ok, try out the latest coding and got this when I typed .tcl set errorInfo<br><blockquote class="uncited"><div>Tcl: wrong # args: should be "pushmode channel mode ?arg?"<br>Tcl:     while executing<br>Tcl: "pushmode "MODE $chan +v $person" "<br>Tcl:     (procedure "scan:and:voice" line 12)<br>Tcl:     invoked from within<br>Tcl: "scan:and:voice $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Sat Oct 09, 2004 6:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-08T07:34:29-04:00</updated>

		<published>2004-10-08T07:34:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41668#p41668</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41668#p41668"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41668#p41668"><![CDATA[
Well you can do that and you would only need to remove some lines in the script.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!voice" scan:and:voiceproc scan:and:voice {nick uhost hand chan text} { if {([botisop $chan])} {; set oplist [list] putserv "PRIVMSG $chan :Scanning $chan for *!*@*.au users..." foreach user [chanlist $chan] {  if {([string match "*.au" [lindex [split [getchanhost $user $chan] "@"] 1]]) &amp;&amp; (![isvoice $user $chan])} {    lappend oplist $user } }   putserv "PRIVMSG $chan :Scanning complete."    if {([llength $oplist] == 0)} { putserv "PRIVMSG $chan :No users matching *!*@.au found in $chan."; return 0 }    if {([llength $oplist] &gt;= 1)} {    putserv "PRIVMSG $chan :Found '[llength $oplist] users' matching *!*@.au found in $chan."     foreach person $oplist {      pushmode "MODE $chan +v $person"      }; flushmode $chan    }; return 0  }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Oct 08, 2004 7:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-08T01:40:23-04:00</updated>

		<published>2004-10-08T01:40:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41659#p41659</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41659#p41659"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41659#p41659"><![CDATA[
<blockquote class="uncited"><div>Plus if you want to voicing all users it is better than voicing 5 users each time, when you type !voice, !voice uptill all users are voiced. <br><br>It can be noted that, <strong class="text-strong">!voiceall *!*@*.isp.com</strong> will voice all people with the matching host, <strong class="text-strong">!voice *!*@.isp.com 8</strong> will only voice 8 users matching that host and so on you can make a script according to your needs.</div></blockquote>That's a great idea. But how do I edit it from the previous code if I want it to scan the entire channel and voice all within 1 time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Fri Oct 08, 2004 1:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-07T21:54:16-04:00</updated>

		<published>2004-10-07T21:54:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41654#p41654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41654#p41654"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41654#p41654"><![CDATA[
Not a problem. However if you just want to voice users with a certain ips.<br>You can make a script to perform:<br><div class="codebox"><p>Code: </p><pre><code>!voice *!*@.isp.com</code></pre></div>Which would be more easier and you woudn't need to edit the script everytime. Plus if you want to voicing all users it is better than voicing 5 users each time, when you type !voice, !voice uptill all users are voiced. <br><br>It can be noted that, <strong class="text-strong">!voiceall *!*@*.isp.com</strong> will voice all people with the matching host, <strong class="text-strong">!voice *!*@.isp.com 8</strong> will only voice 8 users matching that host and so on you can make a script according to your needs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Oct 07, 2004 9:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-07T21:43:27-04:00</updated>

		<published>2004-10-07T21:43:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41653#p41653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41653#p41653"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41653#p41653"><![CDATA[
Thank you, awyeah! It's working perfectly now.<br>Cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Thu Oct 07, 2004 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-07T03:36:49-04:00</updated>

		<published>2004-10-07T03:36:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41641#p41641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41641#p41641"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41641#p41641"><![CDATA[
Well, yeah then you would have to check those users, if they aren't already voiced then go ahead make a list, and voice the users in the list. Otherwise it will keep voicing the previous users untill another new user with the same IP joins in the channel and is amongst the first five.<br><br>To make it work like that,<br><br>replace:<div class="codebox"><p>Code: </p><pre><code> if {([string match "*.au" [lindex [split [getchanhost $user $chan] "@"] 1]])} { </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code> if {([string match "*.au" [lindex [split [getchanhost $user $chan] "@"] 1]]) &amp;&amp; (![isvoice $user $chan])} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Oct 07, 2004 3:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-07T01:00:56-04:00</updated>

		<published>2004-10-07T01:00:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41637#p41637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41637#p41637"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41637#p41637"><![CDATA[
<blockquote class="uncited"><div>Oops, sorry yeah missed a square bracket.<br>Try this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!voice" scan:and:voiceproc scan:and:voice {nick uhost hand chan text} { if {([botisop $chan])} {; set oplist [list] putserv "PRIVMSG $chan :Scanning $chan for *!*@*.au users..." foreach user [chanlist $chan] {  if {([string match "*.au" [lindex [split [getchanhost $user $chan] "@"] 1]])} {   lappend oplist $user }   }   putserv "PRIVMSG $chan :Scanning complete."   if {([llength $oplist] == 0)} { putserv "PRIVMSG $chan :No users matching *!*@.au found"; return 0 }   if {([llength $oplist] &gt; 5)} { putserv "PRIVMSG $chan :Found '5' or more users matching *!*@.au. Voicing the first 5 found."    set oplist [lrange $oplist 0 4] }    putserv "MODE $chan +vvvvv [join $oplist]"; return 0    }}</code></pre></div></div></blockquote>Thanks awyeah. It's work perfectly fine now. But what's make the TCL uncomplete is that I notice the bot only voice the first 5 of the channel nicklist, and the other users (nick below the first 5) which have *!*@*.au ISP doesn't get a voice after I did a second round of "!voice".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Thu Oct 07, 2004 1:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-07T00:31:08-04:00</updated>

		<published>2004-10-07T00:31:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41635#p41635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41635#p41635"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41635#p41635"><![CDATA[
Oops, sorry yeah missed a square bracket.<br>Try this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!voice" scan:and:voiceproc scan:and:voice {nick uhost hand chan text} { if {([botisop $chan])} {; set oplist [list] putserv "PRIVMSG $chan :Scanning $chan for *!*@*.au users..." foreach user [chanlist $chan] {  if {([string match "*.au" [lindex [split [getchanhost $user $chan] "@"] 1]])} {   lappend oplist $user }   }   putserv "PRIVMSG $chan :Scanning complete."   if {([llength $oplist] == 0)} { putserv "PRIVMSG $chan :No users matching *!*@.au found"; return 0 }   if {([llength $oplist] &gt; 5)} { putserv "PRIVMSG $chan :Found '5' or more users matching *!*@.au. Voicing the first 5 found."    set oplist [lrange $oplist 0 4] }    putserv "MODE $chan +vvvvv [join $oplist]"; return 0    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Oct 07, 2004 12:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-06T23:27:52-04:00</updated>

		<published>2004-10-06T23:27:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41634#p41634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41634#p41634"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41634#p41634"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>putserv "MODE $chan +ooooo [join $oplist]"; return 0</code></pre></div>It's +ooooo and not +vvvvv?<br><br>When I use the script and type .tcl set errorInfo in my bot DCC chat, it's shows...<br><div class="codebox"><p>Code: </p><pre><code>Tcl: syntax error in expression "([llength $oplist] &gt; 5])"Tcl:     ("if" test expression)Tcl:     while compilingTcl: "if {([llength $oplist] &gt; 5])} { set oplist [lrange $oplist 0 4] } "Tcl:     ("if" then script line 9)Tcl:     while compilingTcl: "if {([botisop $chan])} {; set oplist [list] Tcl:  putserv "PRIVMSG $chan :Scanning $chan for *!*@*.sg users..." Tcl:  foreach user [chanlist $chan] { Tcl:   if {(..."Tcl:     (compiling body of proc "scan:and:voice", line 2)Tcl:     invoked from withinTcl: "scan:and:voice $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Wed Oct 06, 2004 11:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-07T00:30:09-04:00</updated>

		<published>2004-10-06T21:18:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41632#p41632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41632#p41632"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41632#p41632"><![CDATA[
Here something like this should do it. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!voice" scan:and:voiceproc scan:and:voice {nick uhost hand chan text} { if {([botisop $chan])} {; set oplist [list] putserv "PRIVMSG $chan :Scanning $chan for *!*@*.au users..." foreach user [chanlist $chan] {  if {([string match "*.au" [lindex [split [getchanhost $user $chan] "@"] 1]])} {   lappend oplist $user }   }   putserv "PRIVMSG $chan :Scanning complete."   if {([llength $oplist] == 0)} { putserv "PRIVMSG $chan :No users matching *!*@.au found"; return 0 }   if {([llength $oplist] &gt; 5])} { set oplist [lrange $oplist 0 4] }    putserv "PRIVMSG $chan :Found '5' or more users matching *!*@.au. Voicing the first 5 found."    putserv "MODE $chan +vvvvv [join $oplist]"; return 0    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Oct 06, 2004 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-06T19:56:10-04:00</updated>

		<published>2004-10-06T19:56:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41630#p41630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41630#p41630"/>
		<title type="html"><![CDATA[voice trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41630#p41630"><![CDATA[
Is there any available voice tcl that have this function? The user will doa "!voice" and the bot will scan a particular channel nicks for their ending domain (etc. *!*@*.au) and den give all users with ISP domain ending with .au with a voice. It must be able to voice 5 users per trigger.<br><br>P.S. I know nuts about TCL coding/scripting!<br><br>Please help! Thank you...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Wed Oct 06, 2004 7:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
