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

	<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-06-19T12:04:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-19T12:04:28-04:00</updated>

		<published>2004-06-19T12:04:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37602#p37602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37602#p37602"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37602#p37602"><![CDATA[
i test this code.. when i open botnick.user .. nothing there.. so ?<br>if i need to use this code for one or more channel only? what to do ?<div class="codebox"><p>Code: </p><pre><code>bind mode - "* +v *" auto:addvoice proc auto:addvoice {nick uhost hand chan text} {  if {![validuser $hand]} {    adduser $nick [maskhost $uhost]    chattr $nick +v $chan  } }</code></pre></div>----------------------------<br>and about the other code.. will not work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> cant fix it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><div class="codebox"><p>Code: </p><pre><code>#CODE1set vlist "vnick.txt" bind mode - "#channel +v" vlist:add proc vlist:add {nick host hand chan mc vc} {   set f [open $::vlist a+]   set i 0   while {[gets $f n]&gt;-1} {     if {[string match -nocase $vc $n]} {       incr i     }   }   if {$i} {     puts $f $vc   }   close $f }#CODE2set vlist "vnick.txt" bind join - "#channel *" voice:join  proc voice:join {nick uhost handle chan} {   if {[isbotnick $nick] || ![botisop $chan] || ![file exists $::vlist]} {     return   }   set f [open $::vlist r]   while {[gets $f n]&gt;-1} {     if {[string match -nocase $nick $n]} {       pushmode $chan +v $nick     }   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Sat Jun 19, 2004 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-17T19:54:44-04:00</updated>

		<published>2004-06-17T19:54:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37537#p37537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37537#p37537"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37537#p37537"><![CDATA[
Why not use normal eggdrop flags, and save the users to the eggdrop userlist, its much more efficient and less prune to errors.<br><br>If you want to automaticly add everyone that get +v from one of the ops, to the bot, try something like this:<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +v *" auto:addvoiceproc auto:addvoice {nick uhost hand chan text} { if {![validuser $hand]} {   adduser $nick [maskhost $uhost]   chattr $nick +v $chan }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Jun 17, 2004 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-17T16:10:22-04:00</updated>

		<published>2004-06-17T16:10:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37531#p37531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37531#p37531"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37531#p37531"><![CDATA[
hummm,<br>i change the (a) to (a+)<br><br>i give to a nick voice.. when i open vnick.txt is empty!!<br>so <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>with out show any error!!<br><br><strong class="text-strong">the code to voice .. working</strong><br><strong class="text-strong">the code to write .. not working</strong><br><br>and another qs: when the bot give the voice.. he will add the nick again on vnick.txt ? .. if YES! what to do to fix it ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Thu Jun 17, 2004 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-17T15:13:57-04:00</updated>

		<published>2004-06-17T15:13:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37528#p37528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37528#p37528"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37528#p37528"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set f [open $::vlist a]#should be:set f [open $::vlist a+] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jun 17, 2004 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-17T15:01:01-04:00</updated>

		<published>2004-06-17T15:01:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37527#p37527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37527#p37527"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37527#p37527"><![CDATA[
i got this msg<br><br>Tcl error [vlist:add]: channel "file9" wasn't opened for reading<br><div class="codebox"><p>Code: </p><pre><code>set vlist "vnick.txt" bind mode - "#channel +v" vlist:add proc vlist:add {nick host hand chan mc vc} {   set f [open $::vlist a]   set i 0   while {[gets $f n]&gt;-1} {     if {[string match -nocase $vc $n]} {       incr i     }   }   if {$i} {     puts $f $vc   }   close $f } </code></pre></div><div class="codebox"><p>Code: </p><pre><code>set vlist "vnick.txt" bind join - "#channel *" voice:join  proc voice:join {nick uhost handle chan} {   if {[isbotnick $nick] || ![botisop $chan] || ![file exists $::vlist]} {     return   }   set f [open $::vlist r]   while {[gets $f n]&gt;-1} {     if {[string match -nocase $nick $n]} {       pushmode $chan +v $nick     }   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Thu Jun 17, 2004 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-06-16T15:30:35-04:00</updated>

		<published>2004-06-16T15:30:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37471#p37471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37471#p37471"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37471#p37471"><![CDATA[
Add only if is not there allready:<div class="codebox"><p>Code: </p><pre><code>set vlist "vnick.txt" bind mode - "#channel +v" vlist:addproc vlist:add {nick host hand chan mc vc} {   set f [open $::vlist a]   set i 0  while {[gets $f n]&gt;-1} {     if {[string match -nocase $vc $n]} {       incr i    }  }   if {$i} {    puts $f $vc  }  close $f}</code></pre></div>Ps: The previous code I have pasted had two checks (actualy 3) that stop the proc if the conditions are met.<br>1. [isbotnick $nick] means if $nick is bot's nick then return, no need to voice itself.<br>2. ![botisop $chan] means if the bot is not oped there to not attempt to voice the user<br>3. ![file exists $::vlist] means if the vlist.txt file dosen't exist to not try to read it and check if $nick is listed there for voicing.<br>Questions? Shoot! And please drop the "is not working" s**t! Tell exactly what problem you have encounted in order to get an proper answer.<br><br>And the nicks in the vlist.txt file should be like:<br>nick1<br>nick2<br>and so on..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 16, 2004 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-16T12:18:21-04:00</updated>

		<published>2004-06-16T12:18:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37461#p37461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37461#p37461"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37461#p37461"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - "#channel1 +v" proc:addtofileproc proc:addtofile {nick host hand chan mc vc} {  set fid [open $::vlist a]  puts $fid $vc  catch {close $fid}}</code></pre></div>note that this does not check if the one beeing voiced already is in the file<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 16, 2004 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-16T10:05:27-04:00</updated>

		<published>2004-06-16T10:05:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37455#p37455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37455#p37455"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37455#p37455"><![CDATA[
gb:<br>how can i make the bot do the same job with internal functions  ... <br><br>on any op voice a user on the channel. i add this user on the autovoice!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Wed Jun 16, 2004 10:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-16T09:53:15-04:00</updated>

		<published>2004-06-16T09:53:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37453#p37453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37453#p37453"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37453#p37453"><![CDATA[
why dont you use eggdrop's internal functions for voice and op, its 10x better than messing with external text files<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Jun 16, 2004 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-16T09:37:53-04:00</updated>

		<published>2004-06-16T09:37:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37452#p37452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37452#p37452"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37452#p37452"><![CDATA[
yeah.. its working now..<br>about the write command ?<br>like this on mirc,<br>#### <br>on *:VOICE:#channel:/write vnick.txt $vnick <br>#### <br><br>on any op give voice to a user on special channel .. add the user on the list vnick.txt ? <br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Wed Jun 16, 2004 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-16T09:21:53-04:00</updated>

		<published>2004-06-16T09:21:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37451#p37451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37451#p37451"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37451#p37451"><![CDATA[
did you add one nick at each line?<div class="codebox"><p>Code: </p><pre><code>#make sure this points to the right location of your fileset vlist "[pwd]/scripts/vnick.txt" #just add more binds and change the channelname if you want more channels...bind join - "#channel1 *" voice:join bind join - "#channel2 *" voice:joinproc voice:join {nick uhost handle chan} {   if {[isbotnick $nick] || ![botisop $chan] || ![file exists $::vlist]} {     return   }   set f [open $::vlist r]   while {[gets $f n]&gt;-1} {     if {[string match -nocase $nick $n]} {       pushmode $chan +v $nick     }   } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 16, 2004 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-16T09:20:33-04:00</updated>

		<published>2004-06-16T09:20:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37450#p37450</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37450#p37450"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37450#p37450"><![CDATA[
sorry "caesar"<br>i test it again.. working!!!<br>.. <br>another question..<br>how can i do this tcl ..<br>####<br>on *:VOICE:#channel:/write vnick.txt $vnick<br>####<br><br>on any op give voice to a user.. i add the user on the list vnick ? <br>thx for help and sorry again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Wed Jun 16, 2004 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-16T08:29:59-04:00</updated>

		<published>2004-06-16T08:29:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37446#p37446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37446#p37446"/>
		<title type="html"><![CDATA[dont work :(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37446#p37446"><![CDATA[
oops! i mean i put the nicks on vnick.txt and dont work!!<br>i have to put the host ? nick!*@* ? and the other nicks on the next line ?<br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Wed Jun 16, 2004 8:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AbuAli]]></name></author>
		<updated>2004-06-16T08:14:43-04:00</updated>

		<published>2004-06-16T08:14:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37445#p37445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37445#p37445"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37445#p37445"><![CDATA[
thx for help,<br>i test it .. dont work..<br>i put the nicks on the vlist.txt .. on scripts/<br><br>and how can i do that only in 2 channel.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5052">AbuAli</a> — Wed Jun 16, 2004 8:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-06-12T14:23:48-04:00</updated>

		<published>2004-06-12T14:23:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37256#p37256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37256#p37256"/>
		<title type="html"><![CDATA[Voice Only Who On The List]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37256#p37256"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set vlist "vnick.txt"bind join - * voice:joinproc voice:join {nick uhost handle chan} {  if {[isbotnick $nick] || ![botisop $chan] || ![file exists $::vlist]} {    return  }  set f [open $::vlist r]   while {[gets $f n]&gt;-1} {     if {[string match -nocase $nick $n]} {      pushmode $chan +v $nick    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jun 12, 2004 2:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
