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

	<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>2015-04-20T11:00:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-20T11:00:57-04:00</updated>

		<published>2015-04-20T11:00:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103883#p103883</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103883#p103883"/>
		<title type="html"><![CDATA[Event when the bot is banned from a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103883#p103883"><![CDATA[
<blockquote class="uncited"><div>The <em class="text-italics">botname</em> variable should have stored his actual nick!user@host mask and should be updated when vhost changes (I think). Apparently it doesn't so give this a try:<div class="codebox"><p>Code: </p><pre><code>bind mode - "% +b" check:banproc check:ban {nick host hand chan mode target} {   global botnick   if {![matchaddr $target "$botnick![getchanhost $botnick]"]} return   # do whatever you wish as the ban mask matches bot's current vhost}</code></pre></div></div></blockquote>Not work.<div class="codebox"><p>Code: </p><pre><code>[matchaddr $target "$botnick![getchanhost $botnick]"]</code></pre></div><strong class="text-strong">Error</strong>: Tcl error [check:ban]: can't read "botnick": no such variable.<br>Return: <blockquote class="uncited"><div>!0</div></blockquote>And:<div class="codebox"><p>Code: </p><pre><code>[matchaddr $target "$::botnick![getchanhost $::botnick]"]</code></pre></div> Return <blockquote class="uncited"><div>0</div></blockquote>Edit:format<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Mon Apr 20, 2015 11:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-20T01:11:48-04:00</updated>

		<published>2015-04-20T01:11:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103877#p103877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103877#p103877"/>
		<title type="html"><![CDATA[Event when the bot is banned from a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103877#p103877"><![CDATA[
The <em class="text-italics">botname</em> variable should have stored his actual nick!user@host mask and should be updated when vhost changes (I think). Apparently it doesn't so give this a try:<div class="codebox"><p>Code: </p><pre><code>bind mode - "% +b" check:banproc check:ban {nick host hand chan mode target} {   global botnick   if {![matchaddr $target "$botnick![getchanhost $botnick]"]} return   # do whatever you wish as the ban mask matches bot's current vhost}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 20, 2015 1:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-19T23:06:12-04:00</updated>

		<published>2015-04-19T23:06:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103872#p103872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103872#p103872"/>
		<title type="html"><![CDATA[Event when the bot is banned from a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103872#p103872"><![CDATA[
<strong class="text-strong">caesar </strong>have a problem with the type 2  ban.<blockquote class="uncited"><div>+b *!*@virtual.host.of.my.bot </div></blockquote>The <em class="text-italics">[matchaddr $target $::botname]</em> command return the  internet company real host.<blockquote class="uncited"><div>mybot!<a href="mailto:botijo@anteldata.net.uy">botijo@anteldata.net.uy</a></div></blockquote>I need a command to return vhost bot. <br><br>See this <a href="http://forum.egghelp.org/viewtopic.php?p=103871#103871" class="postlink">post</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 19, 2015 11:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-19T15:52:54-04:00</updated>

		<published>2015-04-19T15:52:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103866#p103866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103866#p103866"/>
		<title type="html"><![CDATA[Event when the bot is banned from a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103866#p103866"><![CDATA[
Thanks <strong class="text-strong">caesar</strong> works fine. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br> For a KICK event would be so?<div class="codebox"><p>Code: </p><pre><code>bind kick - "% *!*@*" check:kick proc check:kick {nick user@host hand chan target reason} { global canal_admin     if {"$target" != $::botnick}  return   putmsg $canal_admin "$nick kick me  $chan  $reason"}</code></pre></div>It does not work that way.<br><br><strong class="text-strong">EDIT</strong>:<br> I already  fixed<div class="codebox"><p>Code: </p><pre><code>bind kick - "*" check:kick </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 19, 2015 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-19T05:55:59-04:00</updated>

		<published>2015-04-19T05:55:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103860#p103860</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103860#p103860"/>
		<title type="html"><![CDATA[Event when the bot is banned from a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103860#p103860"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - "% +b" check:banproc check:ban {nick host hand chan mode target} {if {![matchaddr $target $::botname]} return# do whatever you wish as the ban mask matches bot address}</code></pre></div>The <em class="text-italics">matchaddr</em> is a eggdrop 1.6.20 function, so if you are using an older version would have to replace:<div class="codebox"><p>Code: </p><pre><code>if {![matchaddr $target $::botname]} return</code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>if {![string match -nocase $target $::botname]} return</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Apr 19, 2015 5:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-19T05:29:44-04:00</updated>

		<published>2015-04-19T05:29:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103858#p103858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103858#p103858"/>
		<title type="html"><![CDATA[Event when the bot is banned from a channel?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103858#p103858"><![CDATA[
I need to make a code to report when the BoT has been banned from a channel.<br>My idea is that the BoT report the channel, who banned and reason.<br><br>&lt;bot&gt; DeViL ban me in #chan1 for "do not want you on this channel".<br>I dont know event to trigger when the bot is banned.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 19, 2015 5:29 am</p><hr />
]]></content>
	</entry>
	</feed>
