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

	<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-07-24T17:41:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2008-07-24T17:41:30-04:00</updated>

		<published>2008-07-24T17:41:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84153#p84153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84153#p84153"/>
		<title type="html"><![CDATA[Help With Bans in TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84153#p84153"><![CDATA[
Hi Sir_FZ , strikealight &amp; alchera,<br><br>thanks for your reply and help.<br><blockquote class="uncited"><div>Good observation there, didn't think about it frankly  so achilles1900, you want the bot to whois the banned nick and try to unban any bans set on it?</div></blockquote>Yes that would be very helpful!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Thu Jul 24, 2008 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-07-24T13:26:08-04:00</updated>

		<published>2008-07-24T13:26:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84146#p84146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84146#p84146"/>
		<title type="html"><![CDATA[Help With Bans in TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84146#p84146"><![CDATA[
<blockquote class="uncited"><div>Mmmm... if the user is banned, I wouldn't suspect he's on the channel neccessarily... so getchanhost will most likely fail.</div></blockquote>Good observation there, didn't think about it frankly <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> so achilles1900, you want the bot to whois the banned nick and try to unban any bans set on it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jul 24, 2008 1:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-07-24T12:32:56-04:00</updated>

		<published>2008-07-24T12:32:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84144#p84144</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84144#p84144"/>
		<title type="html"><![CDATA[Help With Bans in TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84144#p84144"><![CDATA[
Mmmm... if the user is banned, I wouldn't suspect he's on the channel necessarily... so getchanhost will most likely fail.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jul 24, 2008 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-07-24T10:16:36-04:00</updated>

		<published>2008-07-24T10:16:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84138#p84138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84138#p84138"/>
		<title type="html"><![CDATA[Help With Bans in TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84138#p84138"><![CDATA[
Replace<div class="codebox"><p>Code: </p><pre><code>[getchanhost $text $chan]</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>[maskhost [getchanhost $text $chan]]</code></pre></div>as for !unbaning nick, use this proc instead of yours:<div class="codebox"><p>Code: </p><pre><code># Unban Processproc proc_unban { nick uhost hand chan text } { set mask $text![getchanhost $text $chan] set found 0 foreach ban [chanbans $chan] {  set ban [lindex $ban 0]  if {[string match -nocase $ban $mask]} {   pushmode $chan -b $ban   set found 1  } } if {!$found} {  puthelp "PRIVMSG $chan :$text Is Not In The Ban List" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jul 24, 2008 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-07-23T23:22:37-04:00</updated>

		<published>2008-07-23T23:22:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84130#p84130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84130#p84130"/>
		<title type="html"><![CDATA[Help With Bans in TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84130#p84130"><![CDATA[
It's the host you unban (as per the list), not the nick.<br><br>.i.e !unban *!*user@*.host.domain<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jul 23, 2008 11:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2008-07-23T05:19:30-04:00</updated>

		<published>2008-07-23T05:19:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84126#p84126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84126#p84126"/>
		<title type="html"><![CDATA[Help With Bans in TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84126#p84126"><![CDATA[
Hi people,<br><br>the following is the bans section in Op Commands by xTc^bLiTz <br>I dont know TCL so i hope some kind soul can take a look at it work it out.<br><br>1. I would like the bot to ban with : *!*user@*.host.domain  which it is currently not doing. <br>(FYI I do the public command !ban (nick) )<br><br>2.  When I try to do !unban (nick) it tells me that there is no user in the banlist, although i see the host there. Anyway to fix this?<br><br>Thanks in advance for your time and efforts  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> . Following is attached the TCL code<div class="codebox"><p>Code: </p><pre><code># Ban Processproc proc_ban { nick uhost hand chan text } {  global botnick  if {[onchan $text]} {    if {$text == $botnick} { return 0 }    set banmask [getchanhost $text $chan]    putquick "MODE $chan +b $banmask"    putkick $chan $text :Requested  } else { putserv "PRIVMSG $chan :$text Is Not In The Channel" }}# Unban Processproc proc_unban { nick uhost hand chan text } {  if {[ischanban $text $chan]} {    pushmode $chan -b $text  } else { putserv "PRIVMSG $chan :$text Is Not In The Ban List" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Wed Jul 23, 2008 5:19 am</p><hr />
]]></content>
	</entry>
	</feed>
