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

	<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>2002-10-26T12:56:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-10-26T12:56:03-04:00</updated>

		<published>2002-10-26T12:56:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12410#p12410</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12410#p12410"/>
		<title type="html"><![CDATA[problem adding a channel ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12410#p12410"><![CDATA[
consider adding validation<br><div class="codebox"><p>Code: </p><pre><code>if {[onchan $toban $chan] == 1} {   puthelp "notice $nick :That nick is not on channel" }else   { do the ban thing }</code></pre></div><div class="codebox"><p>Code: </p><pre><code>newchanban $kchan [maskhost "$knick!$khost"] $botnick $w3rk_reason $bantime2</code></pre></div> <br>I think its the host bit of your code that screws up, not sure, but perhaps consider something simular to the extract above<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Sat Oct 26, 2002 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-26T12:43:35-04:00</updated>

		<published>2002-10-26T12:43:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12409#p12409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12409#p12409"/>
		<title type="html"><![CDATA[problem adding a channel ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12409#p12409"><![CDATA[
i have had some problems with .bans command<br><br>Try a .bans #chan<br>or .console #chan and .bans<br><br>the command of your code seems to be<br><br>!addlamer nick reason<br><br>if nick is not on chan, the chan ban is not created<p>Statistics: Posted by Guest — Sat Oct 26, 2002 12:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-10-25T16:17:58-04:00</updated>

		<published>2002-10-25T16:17:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12371#p12371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12371#p12371"/>
		<title type="html"><![CDATA[problem adding a channel ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12371#p12371"><![CDATA[
Hi<br><br>Im trying to add a channel ban using this script:<br><blockquote class="uncited"><div>proc pub_addlamer {nick uhost hand chan text} {<br> set toban [lindex $text 0]<br> set reason [lindex $text 1]<br> if { [onchan $toban] == 1 } {<br>  newchanban $chan $toban![getchanhost $toban] $hand $reason 0<br>  }<br>}</div></blockquote>I get no error message, but as far as i can see by typing .bans in the partyline no ban is added for the channel.<br><br>Have i missed something obvious out?<br><br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Fri Oct 25, 2002 4:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
