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

	<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>2012-11-16T14:15:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2012-11-16T14:15:54-04:00</updated>

		<published>2012-11-16T14:15:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100223#p100223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100223#p100223"/>
		<title type="html"><![CDATA[bot chanmode informer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100223#p100223"><![CDATA[
Really thank you guys, it works like a charm <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><strong class="text-strong">caesar:</strong> works as well, thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Fri Nov 16, 2012 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-11-16T02:41:57-04:00</updated>

		<published>2012-11-16T02:41:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100219#p100219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100219#p100219"/>
		<title type="html"><![CDATA[bot chanmode informer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100219#p100219"><![CDATA[
How about using internal <em class="text-italics">isbonick</em> function instead of:<div class="codebox"><p>Code: </p><pre><code>if {[string equal -nocase $target $::botnick]} {</code></pre></div>like this:<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $target]} {</code></pre></div>that would work only if there's a single mode change per line (like -v bot), thus you would need (not tested, but in theory) to use <em class="text-italics">lsearch</em> or a <em class="text-italics">foreach</em> loop with a <em class="text-italics">isbotnick</em> check that is basically the same thing with the <em class="text-italics">lsearch</em> instead.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 16, 2012 2:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-11-12T19:30:35-04:00</updated>

		<published>2012-11-12T19:30:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100207#p100207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100207#p100207"/>
		<title type="html"><![CDATA[bot chanmode informer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100207#p100207"><![CDATA[
Try adding this to your script...<br><div class="codebox"><p>Code: </p><pre><code>bind kick - *$botnick* check:kickproc check:kick {nick uhost handle channel target reason} {     if {[string equal -nocase $target $::botnick]} {         putserv "PRIVMSG spithash :Yo, I have been kicked by $nick on $channel !!!"     }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Nov 12, 2012 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2012-11-12T11:07:59-04:00</updated>

		<published>2012-11-12T11:07:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100203#p100203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100203#p100203"/>
		<title type="html"><![CDATA[bot chanmode informer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100203#p100203"><![CDATA[
hrmm, how about kick informing? That would complete it I think <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Mon Nov 12, 2012 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2012-10-28T06:11:55-04:00</updated>

		<published>2012-10-28T06:11:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100170#p100170</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100170#p100170"/>
		<title type="html"><![CDATA[bot chanmode informer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100170#p100170"><![CDATA[
Thanks a lot man, it works like a charm <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>It's really helpful/useful to me <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=9145">spithash</a> — Sun Oct 28, 2012 6:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2012-10-26T19:54:04-04:00</updated>

		<published>2012-10-26T19:54:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100168#p100168</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100168#p100168"/>
		<title type="html"><![CDATA[bot chanmode informer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100168#p100168"><![CDATA[
Untested but I think it's OK<br><div class="codebox"><p>Code: </p><pre><code>bind MODE - * check:modeproc check:mode {nick uhost handle channel change target} {    if {[string equal -nocase $target $::botnick]} {        switch -- $change {            "+o" {putserv "PRIVMSG spithash :Yo, I have been oped by $nick on $channel !!!"}            "-o" {putserv "PRIVMSG spithash :Yo, I have been deoped by $nick on $channel !!!"}            "+v" {putserv "PRIVMSG spithash :Yo, I have been voiced by $nick on $channel !!!"}            "-v" {putserv "PRIVMSG spithash :Yo, I have been devoiced by $nick on $channel !!!"}            default {}        }    } else {        if {([string equal $change "+b"]) &amp;&amp; ([string match -nocase $target $::botname])} {            putserv "PRIVMSG spithash :Yo, I have been banned by $nick on $channel !!!"        }    }    return 0} </code></pre></div>The one drawback, if you consider it such, is that coded in this way causes the bot to check every mode change on every channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Oct 26, 2012 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2012-10-26T07:19:40-04:00</updated>

		<published>2012-10-26T07:19:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100167#p100167</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100167#p100167"/>
		<title type="html"><![CDATA[bot chanmode informer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100167#p100167"><![CDATA[
I have a script that informs me if the bot got banned on any channel by private msging me, I got it from an other topic, I forgot which one..<br><br>The code is this:<br><div class="codebox"><p>Code: </p><pre><code>bind mode * "% +b" check:banproc check:ban {nick uhost handle channel change target} {   # check if the mask matches the bot's host and return if it doesn't   if {![string match -nocase $target $::botname]} return   # do what action/actions you wish as the mask matches his host   putserv "PRIVMSG spithash :Yo, I am banned on $channel !!!"}</code></pre></div>The question is, how can I make it inform me if it even gets voiced/devoiced and opped/deopped too?<br><br>Thank you, it will be really helpful to me and a piece of cake for you coders <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Fri Oct 26, 2012 7:19 am</p><hr />
]]></content>
	</entry>
	</feed>
