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

	<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>2008-08-19T20:25:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-08-19T20:25:45-04:00</updated>

		<published>2008-08-19T20:25:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84712#p84712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84712#p84712"/>
		<title type="html"><![CDATA[need and else.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84712#p84712"><![CDATA[
Well, then the error really is not with your script, but with how you try to alter the lockunban flag for the specific channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Aug 19, 2008 8:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-08-19T17:05:53-04:00</updated>

		<published>2008-08-19T17:05:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84705#p84705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84705#p84705"/>
		<title type="html"><![CDATA[need and else.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84705#p84705"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag lockunban proc blacklist:userdel {nickname hostname handle text} {  global unbanc botnick blacklist BLNicks lockblack bchanwork  if {[channel get $bchanwork lockunban]} {   puthelp "privmsg $nickname :sorry can't use this command."   puthelp "privmsg $nickname :pls contact with a OP."  } else {  set cmd [lindex [split $text] 0] set hostmask [string tolower $nickname!$hostname]  foreach blnick $BLNicks {if {[string match -nocase [set ban [lindex [split $blnick] 0]] $nickname!$hostname]} {bla bla bla put ban, kick, etc.    }   }  }}</code></pre></div>but it don't work, when have +lockunban send the puthelp, and the same when have -lockunban.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Tue Aug 19, 2008 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-08-19T10:55:19-04:00</updated>

		<published>2008-08-19T10:55:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84685#p84685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84685#p84685"/>
		<title type="html"><![CDATA[need and else.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84685#p84685"><![CDATA[
First off, you never defined the lockblack channel setting, so I'm assuming you actually intended to use the lockunban.<br>Secondly, there's a much better way of checking whether the setting is set or not, using <em class="text-italics">channel get</em>.<br><br>Finally, your post really does not say much as to what your script should do, should the channel setting not be set. The vast list of global variables also makes no sense..<br><br>I'm posting the fix regarding channel setting, but you really need to specify what it is you are asking for...<div class="codebox"><p>Code: </p><pre><code>setudef flag lockunbanproc blacklist:userdel {nickname hostname handle text} { global unbanc botnick blacklist BLNicks lockblack bchanwork if {[channel get $bchanwork lockunban]} {  puthelp "privmsg $nickname :sorry can't use this command."  puthelp "privmsg $nickname :pls contact with a OP." } else {#Rest goes here }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Aug 19, 2008 10:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-08-19T09:56:09-04:00</updated>

		<published>2008-08-19T09:56:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84683#p84683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84683#p84683"/>
		<title type="html"><![CDATA[need and else.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84683#p84683"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag lockunbanproc blacklist:userdel {nickname hostname handle text} { global unbanc botnick blacklist BLNicks lockblack bchanworkif {[lsearch -exact [channel info $bchanwork] "+lockblack"]} {  puthelp "privmsg $nickname :sorry can't use this command."  puthelp "privmsg $nickname :pls contact with a OP."} else {rest of script...</code></pre></div>is little code is, if my chan have flag +lockunban put the puthelps, else the rest of my code.<br><br>can helpme?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Tue Aug 19, 2008 9:56 am</p><hr />
]]></content>
	</entry>
	</feed>
