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

	<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>2009-04-23T15:34:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-23T15:34:49-04:00</updated>

		<published>2009-04-23T15:34:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88553#p88553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88553#p88553"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88553#p88553"><![CDATA[
Yup, it'll only voice members having the v userflag.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Apr 23, 2009 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Salik83]]></name></author>
		<updated>2009-04-23T15:33:23-04:00</updated>

		<published>2009-04-23T15:33:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88552#p88552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88552#p88552"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88552#p88552"><![CDATA[
yeah, i updated all bug fixers.. thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> well +g is for autovoice too i guess, so we need to .adduser for this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10607">Salik83</a> — Thu Apr 23, 2009 3:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-23T15:31:21-04:00</updated>

		<published>2009-04-23T15:31:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88551#p88551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88551#p88551"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88551#p88551"><![CDATA[
Nice you got it working.<br><br>I hope you are aware that there's been numerous bugfixes since 1.6.2, several of them critical.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Apr 23, 2009 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Salik83]]></name></author>
		<updated>2009-04-23T15:22:37-04:00</updated>

		<published>2009-04-23T15:22:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88549#p88549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88549#p88549"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88549#p88549"><![CDATA[
cant use new version, i know it comes with slowvoice feature, have to get some auto voice script so i can add some exemptions, i cant ignore *!*@119.* from bot because most of master are using same ip. thanks nml.. code worked. (F)!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10607">Salik83</a> — Thu Apr 23, 2009 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-23T10:02:43-04:00</updated>

		<published>2009-04-23T10:02:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88546#p88546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88546#p88546"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88546#p88546"><![CDATA[
Darn!<br>Thanks for pointing it out. I'll update my post in a sec.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Apr 23, 2009 10:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-04-23T05:15:50-04:00</updated>

		<published>2009-04-23T05:15:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88543#p88543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88543#p88543"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88543#p88543"><![CDATA[
In a string match the pattern comes first and the string to match it against second. I think you have it the wrong way about.<br><br>I do the same thing quite a lot because lsearch for lists is the opposite way. List first and pattern second.<br><br>Confusing!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Thu Apr 23, 2009 5:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-23T10:04:14-04:00</updated>

		<published>2009-04-22T19:17:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88538#p88538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88538#p88538"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88538#p88538"><![CDATA[
Quite like your code, but it should do the trick:<br>Or do you need DNS resolving as well?<br><br>Btw, mind if I ask why you are using such an old eggdrop?<div class="codebox"><p>Code: </p><pre><code>set sv(delay) 60:180set sv(voiceops) 0set sv(method) 2if {$numversion &lt; 1060200} {   bind join v|v * join:sv   proc join:sv {nick host hand chan} { global sv      utimer [expr [lindex [split $sv(delay) :] 0] + [rand [lindex [split $sv(delay) :] 1]]] [list sv:voice $nick $host $hand $chan]   }   proc sv:voice {nick host hand chan} {      if {[botisop $chan]} { global sv         switch -- "$sv(method)" {            "1" {               if {[string match "*@116.*" $host] || [string match "*@119.*" $host]} {return}               if {((![isbotnick $nick]) &amp;&amp; (![isbotnick [hand2nick $hand $chan]]))} {                  if {(([onchan $nick $chan]) &amp;&amp; ("[getchanhost $nick $chan]" == "$host") &amp;&amp; (![isvoice $nick $chan]) &amp;&amp; (($sv(voiceops)) || (![isop $nick $chan])))} {                     # They still have the nick they joined with.                     puthelp "MODE $chan +v $nick"                  } elseif {((![onchan $nick $chan]) &amp;&amp; ([handonchan $hand $chan]) &amp;&amp; (![isvoice [hand2nick $hand $chan] $chan]) &amp;&amp; (($sv(voiceops)) || (![isop [hand2nick $hand $chan] $chan])))} {                     # They most likely changed nicks after joining.                     puthelp "MODE $chan +v [hand2nick $hand $chan]"                  }               }            }            "2" {               foreach u "[chanlist $chan]" {                  set uhost [getchanhost $u]                  if {[string match "*@116.*" $uhost] || [string match "*@119.*" $uhost]} {continue}                  if {((![isvoice $u $chan]) &amp;&amp; ([matchattr [nick2hand $u $chan] v|v $chan]) &amp;&amp; (![isbotnick $u]) &amp;&amp; (($sv(voiceops)) || (![isop $u $chan])))} {                     pushmode $chan +v $u                  }               }            }         }      }   }   if {"[info commands isbotnick]" == ""} {      proc isbotnick {nick} { global botnick         if {"[string tolower $nick]" == "[string tolower $botnick]"} { set nick 1 } { set nick 0 }      }   }   foreach c "[channels]" { channel set "$c" -autovoice }   catch { unset $c }} else {   putlog "slowvoice.tcl: Your Eggdrop version already supports delayed auto-voiceing."}putlog "slowvoice.tcl v1.4 by FireEgl@EFNet &lt;FireEgl@LinuxFan.com&gt; - Loaded." </code></pre></div>Edit:<br>Fixed issue with "string match". Thanks for pointing it out, arfer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Apr 22, 2009 7:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Salik83]]></name></author>
		<updated>2009-04-22T15:28:05-04:00</updated>

		<published>2009-04-22T15:28:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88537#p88537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88537#p88537"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88537#p88537"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set sv(delay) 60:180set sv(voiceops) 0set sv(method) 2if {$numversion &lt; 1060200} {   bind join v|v * join:sv   proc join:sv {nick host hand chan} { global sv      utimer [expr [lindex [split $sv(delay) :] 0] + [rand [lindex [split $sv(delay) :] 1]]] [list sv:voice $nick $host $hand $chan]   }   proc sv:voice {nick host hand chan} {      if {[botisop $chan]} { global sv         switch -- "$sv(method)" {            "1" {               if {((![isbotnick $nick]) &amp;&amp; (![isbotnick [hand2nick $hand $chan]]))} {                  if {(([onchan $nick $chan]) &amp;&amp; ("[getchanhost $nick $chan]" == "$host") &amp;&amp; (![isvoice $nick $chan]) &amp;&amp; (($sv(voiceops)) || (![isop $nick $chan])))} {                     # They still have the nick they joined with.                     puthelp "MODE $chan +v $nick"                  } elseif {((![onchan $nick $chan]) &amp;&amp; ([handonchan $hand $chan]) &amp;&amp; (![isvoice [hand2nick $hand $chan] $chan]) &amp;&amp; (($sv(voiceops)) || (![isop [hand2nick $hand $chan] $chan])))} {                     # They most likely changed nicks after joining.                     puthelp "MODE $chan +v [hand2nick $hand $chan]"                  }               }            }            "2" {               foreach u "[chanlist $chan]" {                  if {((![isvoice $u $chan]) &amp;&amp; ([matchattr [nick2hand $u $chan] v|v $chan]) &amp;&amp; (![isbotnick $u]) &amp;&amp; (($sv(voiceops)) || (![isop $u $chan])))} {                     pushmode $chan +v $u                  }               }            }         }      }   }   if {"[info commands isbotnick]" == ""} {      proc isbotnick {nick} { global botnick         if {"[string tolower $nick]" == "[string tolower $botnick]"} { set nick 1 } { set nick 0 }      }   }   foreach c "[channels]" { channel set "$c" -autovoice }   catch { unset $c }} else {   putlog "slowvoice.tcl: Your Eggdrop version already supports delayed auto-voiceing."}putlog "slowvoice.tcl v1.4 by FireEgl@EFNet &lt;FireEgl@LinuxFan.com&gt; - Loaded."</code></pre></div>here is a complete code.. all i want to add *!*@119.* and *!*@116.* ips to ignore by this script. so people matching those ips wont get +v :/.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10607">Salik83</a> — Wed Apr 22, 2009 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-04-21T18:06:16-04:00</updated>

		<published>2009-04-21T18:06:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88529#p88529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88529#p88529"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88529#p88529"><![CDATA[
It would seem part of the code was cut from the post on the right side.<br><br>From what I can see, the code is not coherent, as when $sv(method) is set to 1, the check for 116/119 IP's is not done. Try adding the "string match" checks to the first case, in the beginning.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Apr 21, 2009 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Salik83]]></name></author>
		<updated>2009-04-21T16:24:44-04:00</updated>

		<published>2009-04-21T16:24:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88528#p88528</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88528#p88528"/>
		<title type="html"><![CDATA[Whats wrong in this code :/]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88528#p88528"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {$numversion &lt; 1060200} {   bind join v|v * join:sv   proc join:sv {nick host hand chan} { global sv      utimer [expr [lindex [split $sv(delay) :] 0] + [rand [lindex [split $sv(delay) :] 1]]] [list sv:voice $nick $host $hand   }   proc sv:voice {nick host hand chan} {      if {[botisop $chan]} { global sv         switch -- "$sv(method)" {            "1" {               if {((![isbotnick $nick]) &amp;&amp; (![isbotnick [hand2nick $hand $chan]]))} {                  if {(([onchan $nick $chan]) &amp;&amp; ("[getchanhost $nick $chan]" == "$host") &amp;&amp; (![isvoice $nick $chan]) &amp;&amp; (($sv                     # They still have the nick they joined with.                     puthelp "MODE $chan +v $nick"                  } elseif {((![onchan $nick $chan]) &amp;&amp; ([handonchan $hand $chan]) &amp;&amp; (![isvoice [hand2nick $hand $chan] $chan                     # They most likely changed nicks after joining.                     puthelp "MODE $chan +v [hand2nick $hand $chan]"                  }               }            }            "2" {               foreach u "[chanlist $chan]" {                  if {[string match {*@119.*} [getchanhost $u $chan]]} { return }                  if {[string match {*@116.*} [getchanhost $u $chan]]} { return }                  if {((![isvoice $u $chan]) &amp;&amp; ([matchattr [nick2hand $u $chan] v|v $chan]) &amp;&amp; (![isbotnick $u]) &amp;&amp; (($sv(voi                     pushmode $chan +v $u                  }               }            }         }      }   }   if {"[info commands isbotnick]" == ""} {      proc isbotnick {nick} { global botnick         if {"[string tolower $nick]" == "[string tolower $botnick]"} { set nick 1 } { set nick 0 }      }   }}</code></pre></div>i want this script to exempt users from *!*@119.* and *!*@116.* , not to voice them :/<br><br><span style="color:red">Edit:<br>Placed the code within proper tags to ease reading.<br>/NML_375</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10607">Salik83</a> — Tue Apr 21, 2009 4:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
