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

	<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-11-17T18:41:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-17T18:41:40-04:00</updated>

		<published>2005-11-17T18:41:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57535#p57535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57535#p57535"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57535#p57535"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>matchattr $hand o $chan</code></pre></div>will check if $hand has global +o only and not $chan specific +o. So instead use o|o. Also a little tip would be to add<div class="codebox"><p>Code: </p><pre><code>if {![matchattr $hand o|o $chan]} { # not allowed notice return 0}</code></pre></div>before the main ifs start, i.e. after the global line or something like that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Nov 17, 2005 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ruizit0]]></name></author>
		<updated>2005-11-16T18:06:33-04:00</updated>

		<published>2005-11-16T18:06:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57512#p57512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57512#p57512"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57512#p57512"><![CDATA[
but the user is me... i have all flags .. . and the bot doesnt respond to nothing .. .<br>but if a normal user tryes the bot responds to te flag check if...<br>when is me.. with all the flags. . he doesnt do nothing <br>wierd<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6976">ruizit0</a> — Wed Nov 16, 2005 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-16T13:38:10-04:00</updated>

		<published>2005-11-16T13:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57501#p57501</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57501#p57501"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57501#p57501"><![CDATA[
If the user doesn't have the +m flag, then ofcourse the whole proc will not be called and not just [botisop].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Nov 16, 2005 1:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ruizit0]]></name></author>
		<updated>2005-11-16T02:10:48-04:00</updated>

		<published>2005-11-16T02:10:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57488#p57488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57488#p57488"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57488#p57488"><![CDATA[
thanks Sir_FZ its working perfectly . . <br>but now i have another problem (n00b stuff) :\<br><br>im trying to set some flags to binds like:<br><div class="codebox"><p>Code: </p><pre><code>#flag setupset normal_flag "m"#bind setupset bind_op "!op"bind $normal_flag ${bind_op} pub:opproc pub:op {....} {</code></pre></div>when i use this set's (flags and binds) the  <strong class="text-strong">if {[botisop $chan]} {</strong> stops working :\<br><br>i tryed some diferent code situations and i cant figure why and how to solve it :\<br><br>then i thinked on something like this:<div class="codebox"><p>Code: </p><pre><code> if ![matchattr $hand $normal_flag $chan] {puthelp "NOTICE $nick :you dont have permission"</code></pre></div>but doesnt worked to...<br>i tryed diferente ways to put that if but with no sucess :\ i even dont figure how and the order of the code .. the order how it calls the processes .. so is a little dificult to me to make it right before to gain practice to this new order :\<br><br>my last proc code is this<br><div class="codebox"><p>Code: </p><pre><code>#flag setupset normal_flags "o"#bind setupset bind_voice "!voice"#scriptbind pub - ${bind_voice} pub:voiceproc pub:voice {nick uhost hand chan arg} {global normal_flags set newvc [lindex [split $arg] 0] if {[botisop $chan]} {if {$newvc==""} {   if {![isvoice $nick $chan]} {  if ![matchattr $hand $normal_flags $chan] {putserv "NOTICE $nick :not allowed to use command"}putserv "MODE $chan +v $nick"   } {    puthelp "NOTICE $nick :you're already voiced on $chan."   }  } elseif {[onchan $newvc $chan]} {   if {[isbotnick $newvc]} {    puthelp "NOTICE $nick :don't touch me!"   } elseif {![isvoice $newvc $chan]} {    putserv "MODE $chan +v $newvc"   } {    puthelp "NOTICE $nick :$newvc is already voiced on $chan."   }  } {   puthelp "NOTICE $nick :$newvc is not on $chan."  } } {  puthelp "NOTICE $nick :not voiced on $chan" }}</code></pre></div>i moved that new if up and down in the code and i cant make it work lol :\<br>sorry for taking your time.. but can you give me a light ?<br>thanks<br>(sorry my english)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6976">ruizit0</a> — Wed Nov 16, 2005 2:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-15T05:32:08-04:00</updated>

		<published>2005-11-15T05:32:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57440#p57440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57440#p57440"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57440#p57440"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - ${Otrigger}voice pub:voiceproc pub:voice {nick uhost hand chan arg} { set newvc [lindex [split $arg] 0] if {[botisop $chan]} {  if {$newvc==""} {   if {![isvoice $nick $chan]} {    putserv "MODE $chan +v $nick"   } {    puthelp "NOTICE $nick :you're already voiced on $chan."   }  } elseif {[onchan $newvc $chan]} {   if {[isbotnick $newvc]} {    puthelp "NOTICE $nick :don't touch me!"   } elseif {![isvoice $newvc $chan]} {    putserv "MODE $chan +v $newvc"   } {    puthelp "NOTICE $nick :$newvc is already voiced on $chan."   }  } {   puthelp "NOTICE $nick :$newvc is not on $chan."  } } {  puthelp "NOTICE $nick :ERROR! I'm not oped on $chan." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Nov 15, 2005 5:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ruizit0]]></name></author>
		<updated>2005-11-15T01:24:26-04:00</updated>

		<published>2005-11-15T01:24:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57430#p57430</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57430#p57430"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57430#p57430"><![CDATA[
yap <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> it works perfectly . . but now i have one problem . .<br>sorry my "n00b'ness" but that piece of code a little bit complicated that im accustomed..<br><br>now i want to add some "if's" but i tryed and the only worked was the<br>if {$newvc == $botnick} {<br>the other ones i cant make it work with your type of code <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>if {$newvc == ""} {if {[isvoice $newvc $chan]} {putserv "NOTICE $nick :you have already voice"}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {[isvoice $newvc $chan]} {putserv "NOTICE $nick :look to chan... $newvc is already voiced!"}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {$newvc == $botnick} {puthelp "NOTICE $nick :dont touch me!"</code></pre></div>can you help me on that please ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>thanks <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=6976">ruizit0</a> — Tue Nov 15, 2005 1:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-11-14T06:47:35-04:00</updated>

		<published>2005-11-14T06:47:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57392#p57392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57392#p57392"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57392#p57392"><![CDATA[
It seems like your bot doesn't recognize that it's deoped, are you sure you have the right <strong class="text-strong">net-type</strong> setting?<br><br>Try this code:<div class="codebox"><p>Code: </p><pre><code>bind pub - ${Otrigger}voice pub:voiceproc pub:voice {nick uhost hand chan arg} { set newvc [lindex [split $arg] 0] if {[botisop $chan]} {  if {$newvc==""} {   putserv "MODE $chan +v $nick"  } elseif {[onchan $newvc $chan]} {   putserv "MODE $chan +v $newvc"  } {   puthelp "NOTICE $nick :$newvc is not on $chan."  } } {  puthelp "NOTICE $nick :ERROR! I'm not oped on $chan." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Nov 14, 2005 6:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ruizit0]]></name></author>
		<updated>2005-11-14T05:35:57-04:00</updated>

		<published>2005-11-14T05:35:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57388#p57388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57388#p57388"/>
		<title type="html"><![CDATA[[HELP] if {![isop $powerfull $chan]} { ???????]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57388#p57388"><![CDATA[
hi all!<br>annyone can tell me why i cant put this if to work ? ... i tryed a few examples and no one works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"> <br><div class="codebox"><p>Code: </p><pre><code>proc pub:voice {nick uhost hand chan text} { global Otrigger set newvc [lindex $text 0] if {$newvc==""} { putserv "MODE $chan +v $nick" } if {[botisop $chan]=="0"} { putserv "NOTICE $nick :ERROR! i dont have ${Otrigger}voice to do it" ; return 0 } putserv "MODE $chan +v $newvc"}</code></pre></div>why when bot isnt oppen he doesnt output the error notice?? <br>if is oped he complete the operation and gives the voice...<br>but if isnt opped he doenst output the notice to user.. and doesnt report any error to partyline to... O.o<br>i tryied several ways like:<br><div class="codebox"><p>Code: </p><pre><code>set powerfull [string tolower [lindex $botnick 0]]set newdp [string tolower [lindex $text 0]]if {![isop $powerfull $chan]} {</code></pre></div>and<br><div class="codebox"><p>Code: </p><pre><code>if {![botisop $chan]} ... bla bla bla</code></pre></div>none of this examples work. . all night to try to do this work . . <br>eggdrops is v1.6.17+SSL<br><br>:\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6976">ruizit0</a> — Mon Nov 14, 2005 5:35 am</p><hr />
]]></content>
	</entry>
	</feed>
