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

	<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>2002-07-07T16:43:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-07T16:43:16-04:00</updated>

		<published>2002-07-07T16:43:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8683#p8683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8683#p8683"/>
		<title type="html"><![CDATA[how to block the .say command if SOMEWORD is the first word?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8683#p8683"><![CDATA[
thank's guys. I think psykotrop's script will do exactly what I need.<br><br>I'm going to test it right now.<br><br>Thank's again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>__<br>Calimero<p>Statistics: Posted by Guest — Sun Jul 07, 2002 4:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-07-07T13:16:05-04:00</updated>

		<published>2002-07-07T13:16:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8682#p8682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8682#p8682"/>
		<title type="html"><![CDATA[how to block the .say command if SOMEWORD is the first word?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8682#p8682"><![CDATA[
Check out the FILT bind. It lets you filter text on the partyline.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Jul 07, 2002 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-07T13:15:09-04:00</updated>

		<published>2002-07-07T13:15:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8681#p8681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8681#p8681"/>
		<title type="html"><![CDATA[how to block the .say command if SOMEWORD is the first word?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8681#p8681"><![CDATA[
ok... it will be a solution...  i made it few years ago for X W .. the notice:dcc:msg proc pemit to send a private to all if $nick isn't X , x or W... <br><br>You have to use .msgowner x message to send a message with X and had +n (owner) level.<br><br><br>sincerely,<br>Psykotrop<br><br><br><br>Tcl Code :<br><br>bind dcc o msg notice:dcc:msg<br>bind dcc n msgowner notice:dcc:msgowner<br><br>proc notice:dcc:msgowner {hand idx arg} {<br> if { [llength $arg] &lt; 1 } {<br>  putdcc $idx "Usage: msg &lt;nick&gt; &lt;message&gt;"<br>  return 0<br> }<br> set sarg [string first " " $arg]<br> set nick [string range $arg 0 [expr $sarg - 1]]<br> set msg [string range $arg [expr $sarg + 1] end]<br><br> if { [llength $nick] &lt; 1 } {<br>  putdcc $idx "usage : msg &lt;nick&gt; &lt;message&gt;"<br>  return 0<br>}<br><br> putdcc $idx "Msg to $nick: $msg"<br> putmsg $nick "$msg"<br> putcmdlog "#$hand# msg $nick $msg"<br> return 0<br>}<br><br><br>proc notice:dcc:msg {hand idx arg} {<br> if { [llength $arg] &lt; 1 } {<br>  putdcc $idx "Usage: msg &lt;nick&gt; &lt;message&gt;"<br>  return 0<br> }<br> set sarg [string first " " $arg]<br> set nick [string range $arg 0 [expr $sarg - 1]]<br> set msg [string range $arg [expr $sarg + 1] end]<br><br>### protection X/W <br>if {$nick == "X" || $nick == "x" || $nick == "W" || $nick == "w" } {<br>putdcc $idx "You don't have permission to private X or W by using the bot !"<br>return 0<br>}<br><br>if { [llength $nick] &lt; 1 } {<br>  putdcc $idx "Usage: msg &lt;nick&gt; &lt;message&gt;"<br>  return 0<br> }<br> putdcc $idx "Msg to $nick: $msg"<br> putmsg $nick "$msg"<br> putcmdlog "#$hand# msg $nick $msg"<br> return 0<br>}<p>Statistics: Posted by Guest — Sun Jul 07, 2002 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-07T13:02:52-04:00</updated>

		<published>2002-07-07T13:02:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8679#p8679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8679#p8679"/>
		<title type="html"><![CDATA[how to block the .say command if SOMEWORD is the first word?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8679#p8679"><![CDATA[
Hi,<br><br>My bots are on chatnet. The channel guardian (like X on undernet) is called k9. You can command k9 with public commands starting with "K9 command" (eg: k9 op nick). You can command k9 by private messages too (.msg k9 command #channel ...)<br><br>I would like to block my bots commands .msg and .say if k9 is the first word in the sentence.<br><br>eg:<br><br>.say #mychan k9 op bad-nick (blocked !)<br>.say #mychan hello all (ok)<br><br>Can someone help me about that ? I don't want a "made" script, but I need some help to start coding that (what do you think I should look at to have an idea about what to do ?)<br><br>TIA and sorry for my bad english.<br><br>__<br>Calimero<p>Statistics: Posted by Guest — Sun Jul 07, 2002 1:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
