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

	<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>2003-11-03T10:16:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2003-11-03T10:16:21-04:00</updated>

		<published>2003-11-03T10:16:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29406#p29406</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29406#p29406"/>
		<title type="html"><![CDATA[Need Help With Global Invite+ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29406#p29406"><![CDATA[
you probably want to remove <div class="codebox"><p>Code: </p><pre><code>if {[matchattr $handle n]} {putnotc $nick "You cannot ban a user added as a Global member."return 0 }</code></pre></div> and change the ban creation line to <div class="codebox"><p>Code: </p><pre><code>newban "*![getchanhost $who]" $nick "$why" $dur</code></pre></div>this will make a ban not like nick!*@* but *!<a href="mailto:ident@host.com">ident@host.com</a>. If you like *!*ident@*.com you may use [maskhost [getchanhost $who]] as ban.<br><br>Note that you should check to ensure the did not typo using the comment ^^ <div class="codebox"><p>Code: </p><pre><code>if { ![onchan $who] } {  puthelp "NOTICE $nick :Can't find $who on any channel"  return 0}</code></pre></div>I would also suggest to use any elseif construct, which will remove all the return 0 lines and you can add an return 1 at the end of ban creation and a return 0 at the end of the proc ^^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Nov 03, 2003 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2003-11-03T08:45:25-04:00</updated>

		<published>2003-11-03T08:45:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29398#p29398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29398#p29398"/>
		<title type="html"><![CDATA[Need Help With Global Invite+ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29398#p29398"><![CDATA[
Hi, I need Some help with global cmds.<br>I wrote these few commands but they dont work.<br>Can you help me out please?<br><br>I cant get this to globaly ban a host in all channels plus not to ban the owner (host).<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !globalban pub_globalbanproc pub_globalban {nick host handle chan testes} {set who [lindex $testes 0]set dur [lindex $testes 1]set why [lrange $testes 2 end]if {[matchattr $handle n]} {if {$who == ""} {putnotc $nick "Usage: !globalban &lt;HOST&gt; &lt;duration&gt; &lt;reason&gt;"return 0 }if {[matchattr [nick2hand $who $chan] nQ]} {putnotc $nick "You cannot ban a user added as a Global member."return 0 }if {[matchattr $handle n]} {putnotc $nick "You cannot ban a user added as a Global member."return 0 }if {$dur == ""} {set dur "60"}if {$why == ""} {set why "Requested"}newban $who $nick "$why" $dur  putnotc $nick "Banned $who on all chan's with reason $why and duration $dur."return 1 }}</code></pre></div>The Same Problem Is With Global Invite.<br><br>Appreciate Your Help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Mon Nov 03, 2003 8:45 am</p><hr />
]]></content>
	</entry>
	</feed>
