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

	<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-11-16T17:08:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[osiris]]></name></author>
		<updated>2010-11-16T17:08:04-04:00</updated>

		<published>2010-11-16T17:08:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95109#p95109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95109#p95109"/>
		<title type="html"><![CDATA[!args - mysql !command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95109#p95109"><![CDATA[
That seems to work indeed, except for the second argument which he doesn't read for some reason... (you can use !command, but not !command victim)<br><br>Thank you for your help <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=11422">osiris</a> — Tue Nov 16, 2010 5:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2010-11-15T22:36:09-04:00</updated>

		<published>2010-11-15T22:36:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95090#p95090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95090#p95090"/>
		<title type="html"><![CDATA[!args - mysql !command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95090#p95090"><![CDATA[
#1: bind pubm - "% !*" dostuff<br>last argument to dostuff will be the full string "!test a b c"<br><a href="http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html#binda_pubm" class="postlink">bind pubm in the reference manual</a><br><br>#2: no "automation", but you can just string map it (regsub needs special treatment of special chars which is ugly)<div class="codebox"><p>Code: </p><pre><code>set output [string map [list %1 $nick %2 $arg] $output]</code></pre></div><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/string.htm#M39" class="postlink">string map in the reference manual</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Mon Nov 15, 2010 10:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[osiris]]></name></author>
		<updated>2010-11-15T13:49:36-04:00</updated>

		<published>2010-11-15T13:49:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95083#p95083</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95083#p95083"/>
		<title type="html"><![CDATA[!args - mysql !command script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95083#p95083"><![CDATA[
Hi all.<br>I am currently making a mysql based !command script (!command nickname1 nickname2) for entertainment of my users. <br>There are only two things I don't know how to do although it might be quite simple.<br><br><strong class="text-strong">#1:</strong><br>how can I bind just "!" and take everything directly behind it as the first argument ?<br><br><strong class="text-strong">#2:</strong><br> is it possible to automatically replace (in output) %1 and %2 by $nick and $arg(s) (maybe regsub?)<br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11422">osiris</a> — Mon Nov 15, 2010 1:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
