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

	<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-09-15T14:52:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-09-15T14:52:36-04:00</updated>

		<published>2008-09-15T14:52:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85170#p85170</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85170#p85170"/>
		<title type="html"><![CDATA[bot check for owner before remove]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85170#p85170"><![CDATA[
There's no else-statement in the code you pasted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Sep 15, 2008 2:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kraka]]></name></author>
		<updated>2008-09-14T23:04:40-04:00</updated>

		<published>2008-09-14T23:04:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85164#p85164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85164#p85164"/>
		<title type="html"><![CDATA[bot check for owner before remove]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85164#p85164"><![CDATA[
What i am trying to do is before the bots removes the chan fro list is to make sure the person trying to remove it is the channel owner of the chan. I have been able to set it up so far to block certain chans and have tried to get it to match flags and have got it to delete the chan but when i try to use the else command to where if they dont meet the flags to send an error message i get an error of <br><br><br>invalid command name "else" while executing "else { puthelp "NOTICE $nick :cant do that " ; return 0 }" (procedure "pub_lol_remove" line 16) invoked from within "pub_lol_remove $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"<br><div class="codebox"><p>Code: </p><pre><code>proc pub_lol_remove {nick host hand chan arg} {set arg [charfilter $arg]set noremove "#chan1 #chan2"global lol botnickif {![check $hand $nick $host]} {if {$lol(silent) == 1 || [checksilent $hand]} {return 0}            puthelp "NOTICE $nick :You need to be identified to use this function. Type .identhelp in the partyline for more info. : \002/msg $botnick id &lt;password&gt;\002 or \002/msg $botnick silent &lt;password&gt;\002 to no more receive this warning."return 0}set ch [lindex $arg 0]if {$ch != ""} {set ch [chanaddapt $ch]}if {$ch == ""} {set ch $chan}if {![validchan $ch]} {puthelp "NOTICE $nick :I'm not on $ch " ;return 0 }  if {[lsearch -exact $noremove [string tolower $ch]] != -1} {puthelp "NOTICE $nick :Can't do that " ;return 0 }channel remove $chputhelp "NOTICE $nick :$ch has been removed."}</code></pre></div>im pretty sure that i have the line right of <br>if {[matchattr $hand |X $ch]}<br>{channel remove $ch return 0}<br>but not sure of how to get it to send the msg if they dont meet the correct flags<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6124">Kraka</a> — Sun Sep 14, 2008 11:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
