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

	<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>2003-03-12T15:53:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pilot1]]></name></author>
		<updated>2003-03-12T15:53:39-04:00</updated>

		<published>2003-03-12T15:53:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17793#p17793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17793#p17793"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17793#p17793"><![CDATA[
It works, Thanks!  <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=2200">pilot1</a> — Wed Mar 12, 2003 3:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-03-12T15:48:05-04:00</updated>

		<published>2003-03-12T15:48:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17792#p17792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17792#p17792"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17792#p17792"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msg - action pub:action proc pub:action { nick uhost hand text } { if {[llength [split $text]] &lt; 2} {putserv "PRIVMSG $nick :\002Usage\002: action #channel text"return }set channel [lindex $text 0]set msg [lrange $text 1 end]if {![validchan $channel] || ![botonchan $channel]} {putserv "PRIVMSG $nick :I'm not monitoring $channel or I'm not there."return }putserv "PRIVMSG $channel :\001ACTION $msg"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Mar 12, 2003 3:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilot1]]></name></author>
		<updated>2003-03-12T15:34:02-04:00</updated>

		<published>2003-03-12T15:34:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17790#p17790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17790#p17790"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17790#p17790"><![CDATA[
Here's the code, but it still won't work.. any ideas?<br><br><br>bind msg - action pub:action<br><br>proc pub:action { nick uhost hand text } {<br>if {[llength [split $text]] &lt; 2} {<br> putserv "PRIVMSG $nick :\002Usage\002: action #channel text"<br>return }<br>set channel [lindex $text 0]<br>set msg [lrange $text 1 end]<br>if {![validchan $channel] || ![botonchan $channel]} {<br> putserv "PRIVMSG $nick :I'm not monitoring $channel or I'm not there."<br>return }<br>putserv "PRIVMSG $chan :\001ACTION msg\001"<br>}<br><br>I tried using it with the \001 and without the \001 near the end of the code, also I want whatever they say after "action #channelname" to show up where msg is in \001ACTION msg\001 is that done right?<br>When I PM the bot with "action #scripts test" nothing happens..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2200">pilot1</a> — Wed Mar 12, 2003 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-12T15:09:10-04:00</updated>

		<published>2003-03-12T15:09:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17788#p17788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17788#p17788"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17788#p17788"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $chan :\001ACTION slaps $nick"</code></pre></div>try that <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=852">Papillon</a> — Wed Mar 12, 2003 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilot1]]></name></author>
		<updated>2003-03-12T12:16:27-04:00</updated>

		<published>2003-03-12T12:16:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17782#p17782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17782#p17782"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17782#p17782"><![CDATA[
But I also want it to do an action (/me) instead of a PRIVMSG, will changing say change that too?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2200">pilot1</a> — Wed Mar 12, 2003 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-12T11:57:02-04:00</updated>

		<published>2003-03-12T11:57:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17781#p17781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17781#p17781"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17781#p17781"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msg m say pub:say</code></pre></div>This is the line reponsible for setting up the event, that calls the script.<br><br>It comes in the format<div class="codebox"><p>Code: </p><pre><code>bind &lt;type&gt; &lt;flags&gt; &lt;mask/trigger&gt; &lt;procedure name&gt;</code></pre></div>Thus, the mask/trigger here is "say", and is all that needs to be changed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Mar 12, 2003 11:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilot1]]></name></author>
		<updated>2003-03-12T11:23:44-04:00</updated>

		<published>2003-03-12T11:23:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17778#p17778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17778#p17778"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17778#p17778"><![CDATA[
Thanks, I have a TCL script from this forum to do a PRIVMSG, is it possible to make a copy of it that does an action on the word 'action' intstead of a PRIVMSG on the word 'say'?<br>The scripts is below.<br><br>bind msg m say pub:say <br><br>proc pub:say { nick uhost hand text } { <br>if {[llength [split $text]] &lt; 2} { <br> putserv "PRIVMSG $nick :\002Usage\002: say #channel text" <br>return } <br>set channel [lindex $text 0] <br>set msg [lrange $text 1 end] <br>if {![validchan $channel] || ![botonchan $channel]} { <br> putserv "PRIVMSG $nick :I'm not monitoring $channel or I'm not there." <br>return } <br>putserv "PRIVMSG $channel :$msg" <br>}<br><br><br>I tryed changing it myself, but my TCL knowledge is severely limited.<br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2200">pilot1</a> — Wed Mar 12, 2003 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-12T10:11:34-04:00</updated>

		<published>2003-03-12T10:11:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17774#p17774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17774#p17774"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17774#p17774"><![CDATA[
This is because the "dump" command, doesn't translate the code as you wish.<br><br>You will have to physicaly send the control codes, via your telnet / irc client.<br><br>There is however, a ".act" command, that will do this for you in the partyline.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Mar 12, 2003 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilot1]]></name></author>
		<updated>2003-03-12T09:47:41-04:00</updated>

		<published>2003-03-12T09:47:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17773#p17773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17773#p17773"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17773#p17773"><![CDATA[
I looked at the formatting codes thread and couldn't find anything on how to do an action (/me in most clients) there, I looked at the links and according to the CTCP Protocol Specifications the command is "\001ACTION does the action.\001" but when I try to input that it doesn't work, probably because i'm not inputting it right..<br>I've tried the following commands in a DCC chat with the eggdrop:<br>.dump PRIVMSG #help :\001 tests the action.\001<br>.dump PRIVMSG #help \001 tests the action.\001<br>.dump #help \001 tests the action.\001<br>.dump CTCP #help \001 tests the action.\001<br>None of them gave any input, except the first two which did "\001 tests the action.\001" and "\001" respectively.<br>Does anyone know what i'm doing wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2200">pilot1</a> — Wed Mar 12, 2003 9:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-12T05:25:59-04:00</updated>

		<published>2003-03-12T05:25:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17762#p17762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17762#p17762"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17762#p17762"><![CDATA[
Follow the template about control codes in the FAQ forum.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Mar 12, 2003 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pilot1]]></name></author>
		<updated>2003-03-11T21:03:16-04:00</updated>

		<published>2003-03-11T21:03:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17751#p17751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17751#p17751"/>
		<title type="html"><![CDATA[Raw command for an action?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17751#p17751"><![CDATA[
What is the raw command for an action? (By action I mean /me does whatever.)<br>I've tried everything I can think of.. <br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2200">pilot1</a> — Tue Mar 11, 2003 9:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
