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

	<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>2010-02-06T07:30:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BhasIRC]]></name></author>
		<updated>2010-02-06T07:30:32-04:00</updated>

		<published>2010-02-06T07:30:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91976#p91976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91976#p91976"/>
		<title type="html"><![CDATA[what am i doing wrong]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91976#p91976"><![CDATA[
thank alot works great<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11039">BhasIRC</a> — Sat Feb 06, 2010 7:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-02-05T18:38:37-04:00</updated>

		<published>2010-02-05T18:38:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91967#p91967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91967#p91967"/>
		<title type="html"><![CDATA[what am i doing wrong]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91967#p91967"><![CDATA[
First off, you are accessing $botnick as a local variable (which does not exist at that point of execution), rather than access the global $::botnick.<br>Secondly, you probably intended the match to be case insensitive. String match cares 'bout case by default, but you can use the -nocase option to instruct it to not care for case:<br><div class="codebox"><p>Code: </p><pre><code>bind ctcp - ACTION slap:backproc slap:back {nick uhost hand chan kw arg} { if {![validchan $chan]} {return 0} if {[string match -nocase "*slap* $::botnick *" $arg]} {  puthelp "KICK $chan $nick :test" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Feb 05, 2010 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BhasIRC]]></name></author>
		<updated>2010-02-05T17:54:52-04:00</updated>

		<published>2010-02-05T17:54:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91966#p91966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91966#p91966"/>
		<title type="html"><![CDATA[what am i doing wrong]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91966#p91966"><![CDATA[
Hi..<br><br>ok i need the following code to kick users who slap the bot with a slap msg maybe if it can be done were the slap msg is diff for each kick<br><br>here is my code<div class="codebox"><p>Code: </p><pre><code>bind ctcp - ACTION slap:back proc slap:back {nick uhost hand chan kw arg} {  if {![validchan $chan]} {return 0}  if {[string match "*slap* $botnick *" $arg]} {   puthelp "KICK $chan $nick :test"  } } </code></pre></div>Thanks in advance<br>Zainul<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11039">BhasIRC</a> — Fri Feb 05, 2010 5:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
